Base de Conhecimento

How do you Enable SELinux?

How do I enable SELinux?

To enable SELinux follow the steps below:

1. You will need to enable SELinux and update the mode in the /etc/selinux/config file. Any text editor should such as Notepad or Nano will work.  

If using nano, you can open and edit the file with the below command:

sudo nano /etc/selinux/config

2. Once you have opened the file you can change the mode of SELinux to either enforcing or permissive by updating the SELINUX=disabled line.

3. When you have completed editing and are ready to save your changes press CTRL + X. This will save and exit the edit mode. 

4. Then reboot by entering the command:

sudo reboot

5. To review the current status of SELinux enter the sestatus command in the command line.

The result will show SELinux status enabled and Current mode: enforcing or permissive based on your update in step 2.

  • 202 Utilizadores acharam útil
Esta resposta foi útil?

Powered by WHMCompleteSolution