Skip site navigation (1)Skip section navigation (2)
Date:      2 Jun 1995 19:24:09 +0200
From:      knarf@nasim.cube.net (Frank Bartels)
To:        freebsd-bugs@freefall.cdrom.com
Subject:   Re: Changed information for PR bin/468
Message-ID:  <3qnhfp$ngv@nasim.nasim.cube.net>
References:  <199506012151.OAA04929@freefall.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jordan K. Hubbard (jkh@freefall.cdrom.com) wrote:

> Synopsis: passwd changes wrong password

> This is not a bug.  su changes only the effective uid, and if you
> wish to change the password for someone else then this isn't the way to do it.

Anyway, I'm not the only one who noticed this annoying behaviour. I
changed root's password this way and tried it out doing another su (to
root) and as you might guess, it did not work. I changed the password
back to the old password and it worked again. I tried this several
times until I saw I was changing the wrong password all the time.

Perhaps passwd should warn you, if you run passwd without arguments. A
much better and easy to implement solution would be:

% su
[...]
# passwd
Changing local password for knarf.
knarf's new password:
[...]

What do you think about this? I think I've seen something similar
on AIX, if you rlogin there and get asked for a password it asks for
"<user>'s password" instead of just "password:". Nice feature.

> Do a `passwd root' or login to root properly.

Log in as root? Hmm, `last' says I did not do this this year ;)

Bye,
Knarf
-- 
    Frank Bartels    |    UUCP/ZModem/Fax: + 49 89 5469593     | MiNT is
knarf@nasim.cube.net | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3qnhfp$ngv>