On Tuesday 30 October 2007 14:14:54 David C. Rankin J.D. P.E. wrote: > Listmates, > > In a script, I need to test that the user is either root or has su'ed > to root before continuing. The USER in the environment remains the > original user and there is nothing set related to 'su'. Any thoughts?
[ $UID -eq 0 ] && echo I am root Anders -- Madness takes its toll -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]