Created
April 25, 2015 00:37
-
-
Save dyerrington/dd112af4410b4cb90faf to your computer and use it in GitHub Desktop.
Forbid user account from running script
This file contains 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
if [ `id -u` != 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