Switching users and running command as others Flashcards
1
Q
what command should we use to switch to another user?
A
su
2
Q
Can we use sudo for executing commands as others?
A
yes, typically as the superuser
3
Q
What does sudo -u command do?
A
runs the command as the specified user
4
Q
what command should we use to login as superuser (root)?
A
sudo su -
5
Q
What command should we use to start a shell as root?
A
sudo -s
6
Q
which command opens the sudoers configuration file?
A
visudo
7
Q
What is the configuration file where the rules for sudoers are?
A
/etc/sudoers