Security Flashcards

1
Q

passwd

A

Change current user’s password

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

sudo -s

A

Execute your current shell as root (Non-login shell)
What is a login shell?

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

sudo -i

A

Switch to the root (superuser) account with root’s environment (Login shell)

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

sudo -l

A

List sudo privileges for the current user

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

visudo

A

Edit the sudoers config file
(“vi” is for…?)

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

getenforce

A

Display the current SELinux mode

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

setstatus

A

Display SELinux details such as the current SELinux mode, the configured mode, and the loaded policy

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

setenforce 0

A

Change the current SELinux mode to Permissive (Does not survive reboot)

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

setenforce 1

A

Change the current SELinux mode to enforcing (Does not survive reboot)

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

SELINUX=enforcing

A

Set the SELinux mode to enforcing on boot by using this setting in the “/etc/selinux/config” file

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

SELINUX=permisive

A

Set the SELinux mode to permissive on boot by using this setting in the /etc/selinux/config file

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

SELINUX=disabled

A

Set the SELinux mode to disabled on boot by using this setting in the /etc/selinux/config file

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