There are times when you need to test something quick and selinux is in your way ... what do you do then ?
Instead of going with a full reboot you can just do the following
echo 0 > /selinux/enforce
This will disable the selinux at runtime. If the system is configured with selinux enabled into his config file
(on redhat/centos /etc/sysconfig/selinux ) next time you reboot it will be enable.
To enable at runtime
echo 1 > /selinux/enforce
Monday, March 8, 2010
Disable at runtime selinux
Labels:
command line,
linux,
security,
selinux,
sysadmin
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment