linux selinux

Edit /etc/selinux/config (e.g. $sudo vi /etc/selinux/config)

Find the line:

SELINUX=enforcing

a) If you simply want to set selinux to permissive mode - which will still warn you when something would have been denied

change to

SELINUX=permissive

b) If you are sure you want to completely disable selinux

change to

SELINUX=disabled

and save (in vi type [Esc] :wq)

SELinux will be disabled after reboot. To turn selinux off immediately, without rebooting use:

$ sudo setenforce 0

This entry was posted in linux. Bookmark the permalink.

Comments are closed.