From the course: Learning CentOS Linux
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Disabling SELinux
From the course: Learning CentOS Linux
Disabling SELinux
- [Narrator] If you just want SELinux to go away and leave you alone, you can do that in two ways. The first way is to turn off enforcement for the current session with setenforce zero. This will set SELinux into permissive mode until the system's restarted. To turn it off for good, there's a bit more work involved. You'll need to edit the SELinux configuration file with vi /etc/sysconfig/selinux. And set the SELinux line to either permissive or disabled depending on your preferences. And then reboot the system. When the system comes back up, the status of SELinux will be set to disabled. I'm going to turn mine back on though, because SELinux is there for a reason. And it's better to configure it properly than to just turn it off at the first hint of inconvenience. We'll see more about working with SELinux in later videos.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.