[操作疑難] Disable 唔SELINUX [Done Case Close]

本帖最後由 dave_ayu 於 2018-6-29 15:47 編輯

[root@localhost ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

已經改左 /etc/selinux/config 入面SELINUX=disable 跟住REBOOT
請問係咪做漏左D野?

用緊咩版本?
唔係"/etc/sysconfig/selinux"?
可幾參考以下︰
https://www.tecmint.com/disable- ... centos-rhel-fedora/

TOP

本帖最後由 dave_ayu 於 2018-6-29 15:43 編輯

回覆 2# 燒浩


  /etc/sysconfig/selinux 只係symb link 去左 /etc/selinux/config
anyway 兩個內容係一樣

[root@localhost ~]# hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 273f7cd9699e4873a673a8826848eaf0
           Boot ID: e01f1cfa625c4463b3e7ba1ff172766c
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-862.3.3.el7.x86_64
      Architecture: x86-64
[root@localhost ~]#

TOP

搞掂了, 打漏左個d....
SELINUX=disabled

TOP

剛望倒,你「disable」少咗個「d」,應該係「disabled」。

TOP

回覆 2# 燒浩

多謝提供

TOP