On Thu, Oct 14, 2010 at 12:10 PM, Mukesh Yadav mak.gnu@gmail.com wrote:
Hi, I installed Centos 5.5 and by deafult SElinux was disabled. I did changes in /etc/selinux/config and now it looks like this.
SELINUX=enforcing SELINUXTYPE=targeted SETLOCALDEFS=0
and rebooted the system. But even after the reboot when I do check the sestatus it shows disable. where I'm doing a mistake do I need to change any thing else?
The 'sestatus' command will show you the status of SE Linux whether it is in disabled, enforcing or permissive mode.
On Centos 5 by default, SE Linux is in permissive mode.
Use the 'lokkit' command to change the SELinux status from 'permissive' to 'enforcing'.
Your machine *might* require a reboot for your new SELinux setting to take place.
Regards,