Created
August 7, 2017 15:21
-
-
Save letroll/2aae8954aa81e6a1d70c102480d9eece to your computer and use it in GitHub Desktop.
[run command with specific user] run a command with a specific user #run #command #user #bash #shell #unix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment