-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 should contain the UID of the current user. It is a read only variable



- --
==============================================================================
I have always wished that my computer would be as easy to use as my
telephone.
My wish has come true. I no longer know how to use my telephone.

Bjarne Stroustrup
==============================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHJzLAasN0sSnLmgIRAn9mAKDfQVu7JLko0NJTPQ/eR27DjlQU4QCgi7E5
oV1WqMVOKTanDVLRsRGOI7U=
=xoIq
-----END PGP SIGNATURE-----
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to