Skip to content

Instantly share code, notes, and snippets.

@icasimpan
Created June 15, 2018 16:48
Show Gist options
  • Save icasimpan/1fc6d09429edab5c0783de30603b83f0 to your computer and use it in GitHub Desktop.
Save icasimpan/1fc6d09429edab5c0783de30603b83f0 to your computer and use it in GitHub Desktop.
Running a command as another user without shell
sudo su apache -s /bin/bash -c 'touch testing'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment