SUMMARY - setting up passwords for 2000 users in SS20 running nis+

From: Jonathan Cheng (
Date: Wed Feb 15 1995 - 09:33:55 CST

My original question is:

>Hi managers,
>I have a non-trivial job to create accounts for about 2000 students in our new
>Sparc Server 20 running Solaris 2.3 and nis+. I have no problem in setting up
>the accounts, but I encounterd problem in setting the passwords for those
>accounts. Is it possible to avoid using "passwd" command to set up password
>for every account? I can get no success in diverting input for passwd from a
>file. I think some of you may have encountered this problem before.
>Thanks in advance for your answer!

Sorry for being so late in summarizing the answers I received for this

Thank you to the following people who replied to my question:

davec@HK.Super.NET (Dave Curado) (Mattias Zhabinskiy) (Brian Coogan) (Tom Mornini) (Willi Burmeister) (John Hearns) (Paulo Licio de Geus) (Randy Olsson ISG) (Bob Rahe) (Patrick Buryk) (Mark E Grannen) (Greg Roberts)
David.Miner@East.Sun.COM (Dave Miner) (Joe Turner) (Mike Blandford) (Tomasz Wolniewicz) (Jay Gallivan) (David Mostardi) (Kevin Sheehan) (Andy Kumeda) (Leif Hedstrom) (Jon) (Robert Tag) (Mark Allyn) (Perry Hutchison) (Henry Katz) (Jim McLean-Lipinski) *** (Pete Welcher)

Most of them gave me a simple answer which is "expect", it's a tool to
"automate" tasks that normally requires `user' input (e.g. passwd, ftp etc).
You can fetch it from:

You should grab expect.tar.Z and tcl7.3.tar.Z, and if you like TK, also
get tk3.6.tar.Z. Those compressed tar files come with some sample
scripts for generating passwords and applying passwords so that you don't
have to use the "passwd" command interactively to set password for each user.

Thanks to Jim McLean-Lipinski for his perl script for generating the
passwords, but I didn't have time to test that.

Jonathan Cheng Phone: 61(7)-3652972
Prentice Centre Fax: 61(7)-3654477
The University of Queensland Email:
St. Lucia QLD 4072

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:16 CDT