How to disable Security-Enhanced Linux (SELinux) in RHEL/CentOS/Debian/Ubuntu

SELinux Linux kernel module to support access control security policies. See Anatomy of Security-Enhanced Linux (SELinux). AppArmor is Canonical’s simpler alternative.

# temporarily
$ sudo sh -c 'echo 0 > /selinux/enforce' or sudo setenforce 0
$ sestatus or getenforce

# permanently
$ cat /etc/selinux/config
SELINUX=permissive (or disabled)
$ reboot

# from bootloader
$ cat /boot/grub/grub.conf
...
kernel /vmlinuz-2.6.18-238.9.1.el5 ro root=LABEL=/ selinux=0

from How to disable SELinux and howto turn off selinux

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s