How do I Sudo to another user?

Tam ca

New member
How do I Sudo to another user?
Answer
To run a command as the root user, use sudo command . You can specify a user with -u , for example sudo -u root command is the same as sudo command . However, if you want to run a command as another user,
you need to specify that with -u.
…
Using sudo.

Commands

Meaning

sudo -u user -s

Start a shell as user.
 

Tìm kiếm

Back
Top