From owner-freebsd-questions Tue Sep 16 21:21:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA12653 for questions-outgoing; Tue, 16 Sep 1997 21:21:53 -0700 (PDT) Received: from rkntws40casa (pool44.hiper.net [207.137.172.44]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA12648; Tue, 16 Sep 1997 21:21:47 -0700 (PDT) Message-Id: <3.0.3.32.19970916212058.009fb520@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Tue, 16 Sep 1997 21:20:58 -0700 To: Doug White From: "Randy A. Katz" Subject: Re: AUTOMATE USER CHANGE PASSWORD Cc: questions@FreeBSD.ORG In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This requires the user executing it to be root, according to the man pw page, first paragraph, oh well. Any other suggestions? At 08:27 PM 9/16/97 -0700, Doug White wrote: >On Tue, 16 Sep 1997, Randy Katz wrote: > >> I need to automate users being able to change their Unix password from >> their Web page. Has anyone heard of or have they hacked passwd.c in order >> for it to be able to do that? > >How about the pw program, particularly the `usermod' -h option? > >pw is a command-line utility to make changes to the password database. It >shouldn't be too hard to have a Perl script feed the appropriate fields to >it. `man pw' for more info. > >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 > >