From owner-freebsd-questions Fri Jul 18 22:49:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA08676 for questions-outgoing; Fri, 18 Jul 1997 22:49:47 -0700 (PDT) Received: from terra.oscs.montana.edu (terra.oscs.montana.edu [153.90.2.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA08671 for ; Fri, 18 Jul 1997 22:49:45 -0700 (PDT) Received: from esus.cs.montana.edu by terra.oscs.montana.edu (5.65/Ultrix3.0-C) id AA27888; Fri, 18 Jul 1997 23:49:43 -0600 Received: from spacehog.STRUCTURED.net by esus.cs.montana.edu (5.65v3.2/1.1.10.5/06Mar97-1051AM) id AA27514; Fri, 18 Jul 1997 23:49:41 -0600 Message-Id: <33D05571.BE09B20C@cs.montana.edu> Date: Fri, 18 Jul 1997 22:49:37 -0700 From: Justin Ashworth Reply-To: ashworth@esus.cs.montana.edu Organization: Pretty crappy X-Mailer: Mozilla 4.0 [en] (Win95; I) Mime-Version: 1.0 To: Doug White Cc: ashworth@esus.cs.montana.edu, questions@FreeBSD.ORG Subject: Re: Change another user's password? X-Priority: 3 (Normal) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Doug White wrote: > > On Fri, 18 Jul 1997, Justin Ashworth wrote: > > > > The superuser can run 'passwd user' to change user's password. > > > > > > Root can also modify /etc/master.passwd manually and regenerate the > > > password database. > > > > Yeah, you're the second one to suggest this. I guess I didn't make > > myself clear. I don't want to have the script change the password as > > root because if I did, anybody could get away with changing anybody > > else's password without knowing the original password. I need a way for > > the passwd program to prompt the user for the old password before > > assigning a new one and as far as I know, that can't be done by running > > passwd as root. > > Doesn't the system default passwd already do this for standard users? > > gdi,ttyp2,~,14>passwd > Changing local password for dwhite. > Old password: Yes, but read my original message...the users don't have shell access. That's the whole tough thing about this. I guess it's just not doable. -- - Justin Ashworth -- ashworth@cs.montana.edu - http://www.cs.montana.edu/~ashworth