Selasa, 26 Agustus 2014

Cara Disable SELinux di CentOS 6.4 / 6.5

Berikut ini adalah tahapan untuk men-disable SELinux di CentOS 6.4 / 6.5 :
  • Cek Versi CentOS, cek status SELinux dan edit file konfigurasi untuk men-disable SELinux :

[root@CentOS64-Esxi-Mn opt]# cat /etc/redhat-release 
CentOS release 6.5 (Final) 
 
[root@CentOS64-Esxi-Mn opt]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted 
 
[root@CentOS64-Esxi-Mn opt]# vi /etc/selinux/config 


# 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
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
  • Restart CentOS 6.4 / 6.5 dan cek status SELInux :
[root@CentOS64-Esxi-Mn opt]# init 6

[root@CentOS64-Esxi-Mn ~]# sestatus
SELinux status:                 disabled
  • Selesai.

Tidak ada komentar:

Posting Komentar