Date: Sat, 13 Dec 1997 08:52:09 -0800 From: Samara McCord <mccord@zytek.com> To: bill@duey.interlinks.net, freebsd-questions@FreeBSD.ORG Subject: Re: Change Password Script Message-ID: <199712131652.IAA16882@syzygy.zytek.com>
next in thread | raw e-mail | index | archive | help
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 <bill@duey.interlinks.net> >To: FreeBSD Questions mail list <freebsd-questions@FreeBSD.ORG> >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 > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712131652.IAA16882>