From owner-freebsd-bugs Fri Jun 2 10:47:08 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA20691 for bugs-outgoing; Fri, 2 Jun 1995 10:47:08 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id KAA20678 ; Fri, 2 Jun 1995 10:47:05 -0700 Message-Id: <199506021747.KAA20678@freefall.cdrom.com> X-Authentication-Warning: freefall.cdrom.com: Host localhost.cdrom.com didn't use HELO protocol To: knarf@nasim.cube.net (Frank Bartels) cc: freebsd-bugs@freefall.cdrom.com Subject: Re: Changed information for PR bin/468 In-reply-to: Your message of "02 Jun 95 19:24:09 +0200." <3qnhfp$ngv@nasim.nasim.cube.net> Date: Fri, 02 Jun 1995 10:47:04 -0700 From: "Justin T. Gibbs" Sender: bugs-owner@FreeBSD.org Precedence: bulk >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 >"'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 ==============================================