Switching users and running command as others Flashcards

1
Q

what command should we use to switch to another user?

A

su

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

Can we use sudo for executing commands as others?

A

yes, typically as the superuser

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

What does sudo -u command do?

A

runs the command as the specified user

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

what command should we use to login as superuser (root)?

A

sudo su -

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

What command should we use to start a shell as root?

A

sudo -s

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

which command opens the sudoers configuration file?

A

visudo

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

What is the configuration file where the rules for sudoers are?

A

/etc/sudoers

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