Nguyễn Thị Lan
New member
How do I switch users with Sudo?
Answer
Run command as root. Run command as user. You can use sudo su to switch to the superuser account.
…
Using sudo.
Answer
Run command as root. Run command as user. You can use sudo su to switch to the superuser account.
…
Using sudo.
Commands | Meaning |
|---|---|
sudo su | Switch to the superuser account. |
sudo su – | Switch to the superuser account with root’s environment. |
sudo su – username | Switch to the username’s account with the username’s environment. |