Votes: 0Posted On: Sep 23, 2015 02:18:53
Secure-Enhance is a Linux kernel security module that provides access control policies to Linux applications. Selinux can be a problem to applications if its not properly configure, for example apache pages could show forbidden 403, ssh root/user login will keep rejecting to login, mysql connections being dropped , java disconnects, Minecraft players will drop. Lots of problems that can cause hours of troubleshooting tme, I do not recommend disabling Selinux but encourage users to learn how to use it, but not many people want to learn something they wont be managing everday, so disabling selinux is easier to do.
1. Check if selinux is enable on your local Linux machine.
[root@lb ~]# sestatus -v
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted
2. Disabled selinux without rebooting
[root@x ~]# setenforce 0
setenforce: SELinux is disabled
3. Manually disable Selinux to prevent it from re-enabling after areboot.
vi or nano /etc/selinux/config change SELINUX=enforcing to SELINUX=disabled, save changes.