if [[ $UID -ne 0 ]] ; then /bin/echo "you are not root, $USER. Exiting" exit 0 fi /bin/passwd -l $1 /bin/logger "locked user $1; reason: $2"