Every once in a awhile you may find you need to run a command as a different user than yourself. In order to do so you will first need to be root, then perform the following:
su <username> -c '<command1>; <command2>;'
Every once in a awhile you may find you need to run a command as a different user than yourself. In order to do so you will first need to be root, then perform the following:
su <username> -c '<command1>; <command2>;'
Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?
PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.
Thank you!
- The Management
Sudo Bash
By Geeks - For Geeks