Created
December 30, 2016 17:53
-
-
Save marschhuynh/71db5ed80eef45996624093047f20be9 to your computer and use it in GitHub Desktop.
Run command line as another user
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
su - root -c "command" | |
OR | |
su - -c "command arg1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment