Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Forbid user account from running script
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
You can’t perform that action at this time.