Contents
How do I run a command from a different user in Linux?
- In Linux, the su command (switch user) is used to run a command as a different user. …
- To display a list of commands, enter the following: su –h.
- To switch the logged-in user in this terminal window, enter the following: su –l [other_user]
How do I run a command in another user?
To “Run as different user” using RUNAS Command in Command Prompt
- Open CMD.
- Enter the command. runas /user:USERNAME “C:fullpathofProgram.exe” For example, if you want to start notepad from user Test run this command : …
- Now you should enter users password.
- If there will be UAC pop up press yes.
14 сент. 2019 г.