User Tools

Site Tools


selinux:change_the_selinux_mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
selinux:change_the_selinux_mode [2016/07/11 10:29] peterselinux:change_the_selinux_mode [2019/12/04 20:15] (current) – removed peter
Line 1: Line 1:
-====== SELinux - Change the SELinux mode ====== 
- 
-Change the SELinux mode in /etc/selinux/config (optional): 
- 
-===== Enforcing ===== 
- 
-<code bash> 
-sudo sed -i 's/SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config  
-</code> 
- 
- 
-===== Permissive ===== 
- 
-<code bash> 
-sudo sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config  
-</code> 
- 
- 
-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. 
  
selinux/change_the_selinux_mode.1468232984.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki