Hi,

with the current 5.8 snapshot I have a question on the following passwd(1)
behaviour:

when I 'sudo su - ' into a root shell and issue a 'passwd' without a username
argument, then it does not try to change the passwd for the current user (in
this case root) but for the user from which I issued the 'sudo'.

Unfortunately the man pages for passwd does not mention the case without
an argument, but on some other linux systems passwd without an argument
always changes the password of the current user.

I would appreciate if somebody could clarify this behaviour.

Here is a sample:

[[email protected]] /home/agreif $ sudo su -

[[email protected]] /root # passwd
Changing local password for agreif. <<<< why is this not for root?
New password:

[[email protected]] /root # echo $SHELL
/bin/ksh

[[email protected]] /root # uname -a
OpenBSD foo.example.net 5.8 GENERIC.MP#1139 amd64


thanks,
Alex.

Reply via email to