home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3497 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  1.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!cs.uoregon.edu!nntp.uoregon.edu!news.u.washington.edu!milton!bradley
  2. From: bradley@milton.u.washington.edu (Scott Bradley)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: changing password in a sh script
  5. Message-ID: <bradley.713955879@milton>
  6. Date: 16 Aug 92 09:04:39 GMT
  7. References: <1992Aug14.171123.7144@cs.uno.edu>
  8. Sender: news@u.washington.edu (USENET News System)
  9. Organization: University of Washington
  10. Lines: 17
  11.  
  12. adunham@arnauds.cs.uno.edu (Andrea M Dunham) writes:
  13.  
  14. >Hi Folks,
  15. >  Will someone please post how to change/set passwords after using Sun's  
  16. >add_user script.  It doesn't seem to work to (from the script) just use
  17. >    ==  script stuff ==
  18. >    passwd <uname>
  19. >    <password>
  20. >    <password>
  21. >    ==  other script stuff ==
  22.  
  23. >Any help is much appreciated.
  24. >        * AndREa *
  25. >        adunham@cs.uno.edu
  26. passwd requires interaction with user and can't be scripted short of
  27. using something like 'expect,' which comes with a sample script to
  28. do exactly what you want.  (see comp.unix.questions FAQ)
  29.