Security Flashcards

1
Q

passwd

A

Change the current user’s password.

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

sudo -i

A

Switch to the root 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 -s

A

Execute your current shell as root.
(Non-login shell.)

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

visudo

A

Edit the sudoers configuration file.

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

getenforce

A

Display the current SELinux mode

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

sestatus

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
8
Q

setenforce 0

A

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

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

setenforce 1

A

Change the current SELinux mode to
Enforcing. (Does not survive a reboot.)

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

SELINUX=permissive

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
12
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