User Tools

Site Tools


ubuntu:selinux:change_the_selinux_mode

Ubuntu - SELinux - Change the SELinux mode

Change the SELinux mode in /etc/selinux/config (optional):

Enforcing

sudo sed -i 's/SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config 

Permissive

sudo sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config 

Reboot

During shutdown all of the files on the system will be labeled. This may take some time depending on how many files you have and disk speed.

ubuntu/selinux/change_the_selinux_mode.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki