From owner-freebsd-questions Fri Jul 18 18:16:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA28026 for questions-outgoing; Fri, 18 Jul 1997 18:16:14 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts17-line2.uoregon.edu [128.223.150.219]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA28019 for ; Fri, 18 Jul 1997 18:16:09 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id SAA01417; Fri, 18 Jul 1997 18:16:02 -0700 (PDT) Date: Fri, 18 Jul 1997 18:16:02 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: ashworth@esus.cs.montana.edu cc: questions@freebsd.org Subject: Re: Change another user's password? In-Reply-To: <33CF7039.4BF04828@cs.montana.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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: Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo