From owner-freebsd-questions Fri Jul 18 06:31:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA20705 for questions-outgoing; Fri, 18 Jul 1997 06:31:54 -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 GAA20700 for ; Fri, 18 Jul 1997 06:31:48 -0700 (PDT) Received: from esus.cs.montana.edu by terra.oscs.montana.edu (5.65/Ultrix3.0-C) id AA14253; Fri, 18 Jul 1997 07:31:46 -0600 Received: from spacehog.STRUCTURED.net by esus.cs.montana.edu (5.65v3.2/1.1.10.5/06Mar97-1051AM) id AA11562; Fri, 18 Jul 1997 07:31:43 -0600 Message-Id: <33CF7039.4BF04828@cs.montana.edu> Date: Fri, 18 Jul 1997 06:31: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: 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 Thu, 17 Jul 1997, Justin Ashworth wrote: > > > Is there a way for one user to change another user's password? > > 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. Hope that's a little clearer... -- - Justin Ashworth -- ashworth@cs.montana.edu - http://www.cs.montana.edu/~ashworth