real UID and sudo.

jvargasm at airtel.net jvargasm at airtel.net
Tue Nov 26 02:16:46 EST 2002


But, /usr/ucb/whoami returns the real or effective ID?. 

   And other question, su change only the effective ID? or also the 
real?

   thanks for your help.
   
----- Mensaje Original -----
De: "Todd C. Miller" <Todd.Miller at courtesan.com>
Fecha: Lunes, Noviembre 25, 2002 5:04 pm
Asunto: Re: real UID and sudo. 

> 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
> 


__________________________________________________________________
 Encuentra a tu media naranja y presume de moto. Sí, porque hasta el 30-
11-2002 por darte de alta en el Chat a 2, además de encontrar al amor 
de tu vida podrás ganar fantásticos premios. Desde una fabulosa SCOOTER 
MBK hasta CINCO teléfonos móviles NOKIA 8310. Envía REG al 525  desde 
tu móvil Vodafone y... ¡la suerte está echada! ¿Alguien da más por 9 
céntimos? Más info en http://www.vizzavi.es/chatsms





More information about the sudo-users mailing list