How to Turn SELinux Off

SELinux (Security Enhanced Linux) provides a mandatory access control mechanism to the Linux kernel. The National Security Agency created it as a way to enforce a security policy that the administration sets over all processes and files, rather than allowing users to control the permissions on files which they own. SELinux is turned on by default in Fedora, Red Hat Enterprise Linux and CentOS. In order to disable SELinux on these operating systems, change the SELinux configuration file.

Instructions

    • 1

      Open a terminal window. The "Terminal" menu option is found under "System Tools" or "Accessories" in the main menu.

    • 2

      Type the command "su -" to become the root user. Type the root password when prompted.

    • 3

      Type the command "vi /etc/selinux/config" to open the SELinux configuration file in the "vi" text editor. You can replace "vi" with your favorite text editor.

    • 4

      Change the "SELINUX=enforcing" line to "SELINUX=disabled." This completely turns off SELinux.

    • 5

      Type the command "shutdown -r now" to reboot the computer. SELinux is now completely disabled. To confirm this status, type "/usr/sbin/getenforce" at the command line as the root user.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured