humbargs
12/7/2013 - 6:08 PM

Bash: Root User?

Bash: Root User?

if [[ $EUID -ne 0 ]]; then 
   echo "ERROR: The user must be root in order to execute this script." 
   exit 1 
fi