home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!ames!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sixgun.East.Sun.COM!sunpix!john.furlani
- From: john.furlani@East.Sun.COM (John L. Furlani)
- Newsgroups: comp.unix.admin
- Subject: Re: Set a password from a shell script?
- Date: 29 Jan 93 04:08:33 GMT
- Organization: Sun Microsystems, RTP, NC
- Lines: 37
- Distribution: world
- Message-ID: <JOHN.FURLANI.93Jan28230833@quixote.East.Sun.COM>
- References: <1993Jan19.230306.12818@wl.com> <C1IKwp.E00@sunlab1.bath.ac.uk>
- NNTP-Posting-Host: quixote.east.sun.com
- In-reply-to: ccsis@sunlab1.bath.ac.uk's message of 27 Jan 93 13:17:12 GMT
-
-
-
- You should check out "expect" written by Don Libes at NIST. It is a fully
- controlable pty shell (either interactive or script). expect uses Tcl (Tool
- Command Language).
-
- Setting the passwd is only one of the many examples in the paper and included
- with the package. This is a VERY powerful tool.
-
- expect can be found through archie or on ftp.cme.nist.gov in /pub.
-
- j.
-
-
- In article <C1IKwp.E00@sunlab1.bath.ac.uk> Icarus Sparry writes:
- > Newsgroups: comp.unix.admin
- > References: <1993Jan19.230306.12818@wl.com>
- > Organization: Bath University Computing Services, UK
- >
- > In the referenced article, duffiem@wl.com (Mark Duffield) writes:
- > >I am looking for a program (c, shell, perl) that will allow me to
- > >set a users password from a shell script. This program will only be run from
- > >root. As you probably know, passwd(1) won't let you do this. I have alot
- > >of users to create and I don't want to:
- >
- > You don't say if you are using a BSD based system, but if you are then
- > you should get the 'pty' program from a comp.sources.unix archive.
- >
- > When you do, you will find your statement that passwd(1) will not allow
- > you to set passwords is false. 'pty' even has an example script which
- > shows you how to do it. 'pty' is a very useful program - get it!
- --
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- John L. Furlani SunSoft, Inc.
- MaBell: (919)460-8383 P.O. Box 13447
- Internet: john.furlani@East.Sun.COM RTP, NC 27709
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-