SELinux won’t disable on CentOS 6

The problem:

Setting SELINUX to disbled in /etc/sysconfig/selinx does not work.   SELinux stays continues to run in Enforcing mode event after a reboot.

The cause:

/etc/sysconfig/selinx should be a symbolic link to /etc/selinux/config but sometimes it is created as an actual file.  This means you can edit it to your hearts content and it won’t change a thing.

The solution:

Option 1:

Edit both /etc/sysconfig/selinux and /etc/selinux/config.

Option 2:

Fix the issue by making /etc/sysconfig/selinux a symbolic link again.

 

 

Source: http://fogproject.org/forum/threads/selinux-wont-disable.10714/

Interesting find: reptyr

Website: https://github.com/nelhage/reptyr
Quote:

reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don’t want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.

 

I haven’t used it yet but I’ll definitely keep it in my tool box.