Date: Fri, 02 Jun 1995 10:47:04 -0700 From: "Justin T. Gibbs" <gibbs@freefall.cdrom.com> To: knarf@nasim.cube.net (Frank Bartels) Cc: freebsd-bugs@freefall.cdrom.com Subject: Re: Changed information for PR bin/468 Message-ID: <199506021747.KAA20678@freefall.cdrom.com> In-Reply-To: Your message of "02 Jun 95 19:24:09 %2B0200." <3qnhfp$ngv@nasim.nasim.cube.net>
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 i >t. > >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 FreeBSD already tells you who's password it is changing: [aslan::gibbs]$ su su: kerberos: not in root's ACL. Password: Warning: imported path contains relative components aslan# passwd Changing local password for gibbs. New password: ... aslan# passwd root Changing local password for root. New password: ... >-- > Frank Bartels | UUCP/ZModem/Fax: + 49 89 5469593 | MiNT is >knarf@nasim.cube.net | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS! -- Justin T. Gibbs ============================================== TCS Instructional Group - Programmer/Analyst 1 Cory | Po | Danube | Volga | Parker | Torus ==============================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506021747.KAA20678>