real UID and sudo.
Todd C. Miller
Todd.Miller at courtesan.com
Tue Nov 26 18:39:36 EST 2002
In message <15843.65390.654185.614237 at komodo.home.wards.net>
so spake (bill):
> What command will tell you both real vs. effective UID? We had a
> similar problem at my work, and my manager decided to not use sudo as
> a result.
Unfortunately, the Solaris /usr/bin/id command does not have the
-r flag. If you have the GNU version installed you can do "id -ur"
If you have perl then this is easy:
perl -e 'print "real: $<, effective $>\n"'
- todd
More information about the sudo-users
mailing list