Subject: Re: changing password using sudo and su....
To: Jeremy C. Reed <firstname.lastname@example.org>
From: Timothy A. Musson <email@example.com>
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)
>> 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?