Skip to content

Instantly share code, notes, and snippets.

@b13bs
Created October 10, 2018 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b13bs/ff0eef5b79b630e95a2b491e1c407ffd to your computer and use it in GitHub Desktop.
Save b13bs/ff0eef5b79b630e95a2b491e1c407ffd to your computer and use it in GitHub Desktop.
run as root header in bash script
if [ "$EUID" -ne 0 ]
then echo "[-] Should be run as root!"
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment