home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ccsis@sunlab1.bath.ac.uk (Icarus Sparry)
- Newsgroups: comp.unix.admin
- Subject: Re: Set a password from a shell script?
- Message-ID: <C1IKwp.E00@sunlab1.bath.ac.uk>
- Date: 27 Jan 93 13:17:12 GMT
- References: <1993Jan19.230306.12818@wl.com>
- Organization: Bath University Computing Services, UK
- Lines: 12
-
- 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!
-