This applies to RedHat, Fedora or CentOS. When you are in a test lab or even just trying different configurations for your server SELinux can get in your way. It may block what you are trying to do without notice or it may pop up several notices telling you that it is doing so. Either way it can be painful to test or change service configurations with it in full blown enforcing mode. So to make it less intrusive you may do the following (as root or sudo of course):
- Edit /etc/sysconfig/selinux with your favourite text editor
- You should see
- Change the line SELINUX=enforcing to read
SELINUX=permissive - Save the file
- Reboot
To see the current status
CLI: sestatus
By the way if you want to toggle it off and on temporarily:
CLI: setenforce Permissive
or
CLI: setenforce Enforcing
No comments:
Post a Comment