Skip to content

Instantly share code, notes, and snippets.

@stefano-garzarella
Last active August 29, 2015 14:06
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 stefano-garzarella/4e444d589a8c38bbc881 to your computer and use it in GitHub Desktop.
Save stefano-garzarella/4e444d589a8c38bbc881 to your computer and use it in GitHub Desktop.
Bash root privileges
# Make sure only root can run this script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment