发新话题
打印

How to Disable SELinux

How to Disable SELinux

In Fedora Core and RedHat Enterprise, edit  etc selinux/config
just change SELINUX=enforcing to SELINUX=permissive, and you're done. Reboot if you want to prove it.

For the other Linuxes which don't have the  etc selinux/config file, you just need to edit the kernel boot line, usually in /boot/grub/grub.conf if you're using the GRUB boot loader. On the kernel line, add enforcing=0 at the end.


原文:http://www.crypt.gen.nz/selinux/disable_selinux.html


查看SELinux状态:

[root@]#  sestatus -v
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:      28

[ 本帖最后由 linda 于 2016-10-26 10:15 编辑 ]

TOP

发新话题