real UID and sudo.

Todd C. Miller Todd.Miller at courtesan.com
Mon Nov 25 11:04:36 EST 2002


In message <a409fa6ab6.a6ab6a409f at airtel.net>
	so spake  (jvargasm):

>    when i execute:
> 
>    sudo who am i
> 
>    it returns the user i logged to the machine not root.

That's because who uses the utmp file, it doesn't check uids.
If you run /usr/ucb/whoami it will say "root".

 - todd



More information about the sudo-users mailing list