Introduction
SELINUX may cause some confusion and difficulties when configuring Linux. If any weird problems encounter while configure any of the Linux services (e.g.: Samba, Firewall, ...), we may disable the SELINUX first to check if the problems are related to it.
Fedora 16
In Fedora 16, selinux no longer mount to /selinux. It has move to /sys/fs/selinux.
- Temporary disable SELINUX: echo 0 >/sys/fs/selinux/enforce
- Temporary enable SELINUX: echo 1 >/sys/fs/selinux/enforce
- Permanently disable SELINUX: edit /etc/selinux/config and change "SELINUX=enforcing" to "SELINUX=disabled"
Fedora 15 or below
- Temporary disable SELINUX: echo 0 >/selinux/enforce
- Temporary enable SELINUX: echo 1 >/selinux/enforce
- Permanently disable SELINUX: edit /etc/selinux/config and change "SELINUX=enforcing" to "SELINUX=disabled"
No comments:
Post a Comment