Switching SELinux off

In this recipe we will consider the need to switch Security-Enhanced Linux (SELinux) off in order to ease the process of installing packages and managing your server.

Security-Enhanced Linux is a very robust security mechanism that is enabled by default. It is designed to improve the security of your server but on occasion it has been the case that you have been required to disable it in order to install a new package or to speed up the process of server management. This is not a decision you will make in haste, but it is the purpose of this recipe to show you how this can be achieved and this solution can be seen as both, temporary or permanent, depending on your needs.

Getting ready

To complete this recipe, you will require ...

Get CentOS 6 Linux Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.