Cara Enable atau Disable SELinux di CentOS

SELinux adalah fasilitas keamanan yang secara default aktif di CentOS. SElinux ini sangat berguna, namun terkadang karena suatu keperluan dan kemudahaan kita mungkin perlu menonaktifkan SELinux ini. Caranya mudah seperti berikut ini:

Silakan login diterminal sebagai root kemudian buka /etc/sysconfig/selinux menggunakan nano atau gedit.

[rahmatriyanto@rahmatriyanto-centos6 ~]$ nano /etc/sysconfig/selinux
 # This file controls the state of SELinux on the system.
 # SELINUX= can take one of these three values:
 # enforcing - SELinux security policy is enforced.
 # permissive - SELinux prints warnings instead of enforcing.
 # disabled - No SELinux policy is loaded.
 # SELINUX=enforcing rahmatriyanto edit
 SELINUX=disabled 
 # SELINUXTYPE= can take one of these two values:
 # targeted - Targeted processes are protected,
 # mls - Multi Level Security protection.
 SELINUXTYPE=targeted

Ganti SELINUX=enforcing menjadi SELINUX=disabled, terakhir reboot CentOS Anda.

Leave a Reply

Your email address will not be published. Required fields are marked *