30 Oct
2007
30 Oct
'07
13:31
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: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org