From owner-freebsd-questions Sat Dec 13 08:52:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA02403 for questions-outgoing; Sat, 13 Dec 1997 08:52:19 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from syzygy.zytek.com (syzygy.zytek.com [140.174.241.1]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA02394 for ; Sat, 13 Dec 1997 08:52:12 -0800 (PST) (envelope-from mccord@zytek.com) Received: (from mccord@localhost) by syzygy.zytek.com (8.6.11/8.6.9) id IAA16882; Sat, 13 Dec 1997 08:52:09 -0800 Date: Sat, 13 Dec 1997 08:52:09 -0800 From: Samara McCord Message-Id: <199712131652.IAA16882@syzygy.zytek.com> To: bill@duey.interlinks.net, freebsd-questions@FreeBSD.ORG Subject: Re: Change Password Script Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Check out: ftp://zy.zcc.net/pub/FreeBSD/chpass.tgz This is an HTML/Tcl/C package for changing passwords we use here. You only need the "changepass.c" which compiles to a program that does exactly what you indicated, interacting with the "passwd" program. (But you also need to supply the old password on the command line). Sam >From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 17:48:22 1997 >Date: Sat, 6 Dec 1997 20:11:25 +0000 (GMT) >From: Bill Sandiford >To: FreeBSD Questions mail list >Subject: Change Password Script >MIME-Version: 1.0 >Content-Type: TEXT/PLAIN; charset=US-ASCII >Sender: owner-freebsd-questions@FreeBSD.ORG >X-Loop: FreeBSD.org >Precedence: bulk > >I need some help > >I need to write a script that will change a users script from the command >line. The format would be something like : > >change_pass username newpassword > > >Problem is that I can't find a way to pass the variables to passwd and >have them go in correctly. Someone suggested before that I use pw to feed >in the password, but I can't figure that out either. I was also told that >writing a script to do this could be vulnerable because someone could type >ps and read the password. This doesn't matter to me, as my box is secure >and noone can get access to a shell. > >Thanks in advance > >Bill Sandiford > > >