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

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!spool.mu.edu!agate!doc.ic.ac.uk!warwick!uknet!gdt!ccsis
  2. From: ccsis@sunlab1.bath.ac.uk (Icarus Sparry)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Set a password from a shell script?
  5. Message-ID: <C1IKwp.E00@sunlab1.bath.ac.uk>
  6. Date: 27 Jan 93 13:17:12 GMT
  7. References: <1993Jan19.230306.12818@wl.com>
  8. Organization: Bath University Computing Services, UK
  9. Lines: 12
  10.  
  11. In the referenced article, duffiem@wl.com (Mark Duffield) writes:
  12. >I am looking for a program (c, shell, perl) that will allow me to
  13. >set a users password from a shell script.  This program will only be run from
  14. >root.  As you probably know, passwd(1) won't let you do this.  I have alot
  15. >of users to create and I don't want to:
  16.  
  17. You don't say if you are using a BSD based system, but if you are then
  18. you should get the 'pty' program from a comp.sources.unix archive.
  19.  
  20. When you do, you will find your statement that passwd(1) will not allow
  21. you to set passwords is false. 'pty' even has an example script which
  22. shows you how to do it. 'pty' is a very useful program - get it!
  23.