Change the SELinux Enforcement Mode Flashcards

1
Q

What command is used to verify the current SELinux mode of a machine?

A

getenforce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to confirm the SELINUX parameters?

A

grep ‘^SELINUX’ /etc/selinux/config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used to temporarily change the setenforce command to permissive mode?

A

setenforce 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command is used to temporarily set the SELinux mode to enforcing?s

A

setenforce 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly