User Tools

Site Tools


ubuntu:selinux:temporarily_switch_on_selinux_enforcement

Ubuntu - SELinux - Temporarily switch on SELinux enforcement

Temporarily switch on SELinux enforcement.

Type the following command as root user:

echo 1 >/selinux/enforce

Type the following command to see current status, enter:

sestatus

Sample outputs:

SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted
ubuntu/selinux/temporarily_switch_on_selinux_enforcement.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki