From owner-freebsd-questions Fri Nov 28 21:14:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA04514 for questions-outgoing; Fri, 28 Nov 1997 21:14:17 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA04509 for ; Fri, 28 Nov 1997 21:14:14 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.7) with SMTP id VAA22258; Fri, 28 Nov 1997 21:13:51 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Fri, 28 Nov 1997 21:13:51 -0800 (PST) From: Doug White Reply-To: Doug White To: Bill Sandiford cc: freebsd-questions@FreeBSD.ORG Subject: Re: Changing password with shell scripts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 28 Nov 1997, Bill Sandiford wrote: > Hello : > > I need some help. I want to write a some sort of script that would allow > me to change a users password in one command from the command line > > The command line would be something like this > > change_password username oldpassword newpassword This is evil. I can do a `ps' and swipe your passwords while you're changing them. See the `pw' command, you can feed it encrypted passwords. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major