How do I change user to sudo?
Answer
Another way to switch to another account with sudo is to
use the -s option. If you run sudo -s that will start a shell as root. You can specify a user with the -u option.
…
Using sudo.
Answer
Another way to switch to another account with sudo is to
use the -s option. If you run sudo -s that will start a shell as root. You can specify a user with the -u option.
…
Using sudo.
Commands | Meaning |
|---|---|
sudo -u root command | Run command as root. |
sudo -u user command | Run command as user. |