Change the SELinux Enforcement Mode Flashcards
1
Q
What command is used to verify the current SELinux mode of a machine?
A
getenforce
2
Q
What command is used to edit the configuration file that changes SELINUX parameters from enforcing to permissive mode?
A
vim /etc/selinux/config
3
Q
What command is used to confirm the SELINUX parameters?
A
grep ‘^SELINUX’ /etc/selinux/config
4
Q
What command is used to temporarily change the setenforce command to permissive mode?
A
setenforce 0
5
Q
What command is used to temporarily set the SELinux mode to enforcing?s
A
setenforce 1