Best Answer: How Do I Run a Linux User?
Contents

How do I run a Linux command as another user?

To provide sudo access, the user has to be added to the sudo group. The su command lets you switch the current user to any other user. If you need to run a command as a different (non-root) user, use the –l [username] option to specify the user account.

How do I run a command as user?

To “Run as different user” using RUNAS Command in Command Prompt

  1. Open CMD.
  2. Enter the command. runas /user:USERNAME “C:fullpathofProgram.exe” For example, if you want to start notepad from user Test run this command : …
  3. Now you should enter users password.
  4. If there will be UAC pop up press yes.

14 сент. 2019 г.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest