Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re:Deleting user accounts created directly in NetInfo' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re:Deleting user accounts created directly in NetInfo
Authored by: kerbaugh on Jun 16, '03 07:09:29PM

Hi Mark,
   It may just be my browser, but aren't the dollar signs, "$" missing in front of all of the variables whose names are all in capital letters? By the way, while adherence to standards is generally lacking in the case of script return status, the correct code for ERROR_NON_ROOT_USER is 70, as in:

E_NON_ROOT_USER=70 # Must run as root.
ROOT_UID=0

if [ "$UID" -ne "$ROOT_UID" ]
then
   echo; echo "You must be root to run this script."; echo
   exit $E_NON_ROOT_USER
fi



[ Reply to This | # ]