home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / admin / 7271 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.2 KB

  1. 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
  2. From: john.furlani@East.Sun.COM (John L. Furlani)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Set a password from a shell script?
  5. Date: 29 Jan 93 04:08:33 GMT
  6. Organization: Sun Microsystems, RTP, NC
  7. Lines: 37
  8. Distribution: world
  9. Message-ID: <JOHN.FURLANI.93Jan28230833@quixote.East.Sun.COM>
  10. References: <1993Jan19.230306.12818@wl.com> <C1IKwp.E00@sunlab1.bath.ac.uk>
  11. NNTP-Posting-Host: quixote.east.sun.com
  12. In-reply-to: ccsis@sunlab1.bath.ac.uk's message of 27 Jan 93 13:17:12 GMT
  13.  
  14.  
  15.  
  16. You should check out "expect" written by Don Libes at NIST.  It is a fully
  17. controlable pty shell (either interactive or script).  expect uses Tcl (Tool
  18. Command Language).
  19.  
  20. Setting the passwd is only one of the many examples in the paper and included
  21. with the package.  This is a VERY powerful tool.
  22.  
  23. expect can be found through archie or on ftp.cme.nist.gov in /pub.
  24.  
  25. j.
  26.  
  27.  
  28. In article <C1IKwp.E00@sunlab1.bath.ac.uk> Icarus Sparry writes:
  29. >   Newsgroups: comp.unix.admin
  30. >   References: <1993Jan19.230306.12818@wl.com>
  31. >   Organization: Bath University Computing Services, UK
  32. >
  33. >   In the referenced article, duffiem@wl.com (Mark Duffield) writes:
  34. >   >I am looking for a program (c, shell, perl) that will allow me to
  35. >   >set a users password from a shell script.  This program will only be run from
  36. >   >root.  As you probably know, passwd(1) won't let you do this.  I have alot
  37. >   >of users to create and I don't want to:
  38. >
  39. >   You don't say if you are using a BSD based system, but if you are then
  40. >   you should get the 'pty' program from a comp.sources.unix archive.
  41. >
  42. >   When you do, you will find your statement that passwd(1) will not allow
  43. >   you to set passwords is false. 'pty' even has an example script which
  44. >   shows you how to do it. 'pty' is a very useful program - get it!
  45. --
  46. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  47.                 John L. Furlani                    SunSoft, Inc.
  48. MaBell:        (919)460-8383                      P.O. Box 13447
  49. Internet:    john.furlani@East.Sun.COM          RTP, NC 27709
  50. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  51.