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