Subject: Re: changing password using sudo and su....
To: Jeremy C. Reed <reed@reedmedia.net>
From: Timothy A. Musson <timothy.musson@zin-tech.com>
List: tech-security
Date: 03/31/2004 11:35:01
At 07:08 PM 3/30/04 , Jeremy C. Reed wrote:
>On Tue, 30 Mar 2004, Sergio Jimenez wrote:
>
>> root@bender# id
>> uid=0(root) gid=0(wheel)
groups=0(wheel),2(kmem),3(sys),4(tty),5(operator),20(staff),31(guest)
>>
>> root@bender# passwd
>> Changing local password for sergio.
>
>> Anyone could explain what's going on here?
>
>passwd(1) uses getlogin(2).
>

So would "su -" work in the way he was expecting?

-Tim