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

From: Jonathan Cheng (ccjon@cc.uq.oz.au)
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
question.

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

davec@HK.Super.NET (Dave Curado)
mattias@txc.com (Mattias Zhabinskiy)
bcoogan@kryten.telecom.com.au (Brian Coogan)
tmornini@infomania.com (Tom Mornini)
wib@cs.uni-kiel.de (Willi Burmeister)
johnh@gerbil.umds.ac.uk (John Hearns)
paulo@dcc.unicamp.br (Paulo Licio de Geus)
rao@hobbes.crc.com (Randy Olsson ISG)
bob@hobbes.dtcc.edu (Bob Rahe)
pburyk@leis.leis.bellcore.com (Patrick Buryk)
meg@hercules.cb.att.com (Mark E Grannen)
gregr@cibc.com (Greg Roberts)
David.Miner@East.Sun.COM (Dave Miner)
jdt@concorde.com (Joe Turner)
mikey@truman.lanl.gov (Mike Blandford)
twoln@mat.uni.torun.pl (Tomasz Wolniewicz)
jag@mvision.com (Jay Gallivan)
david@capmkt.com (David Mostardi)
Kevin.Sheehan@uniq.com.au (Kevin Sheehan)
kumeda@dt.wdc.com (Andy Kumeda)
leif@infoseek.com (Leif Hedstrom)
jonh@hitl.washington.edu (Jon)
tag@mls.saic.com (Robert Tag)
allyn@allyn.com (Mark Allyn)
perryh@pluto.rain.com (Perry Hutchison)
hkatz@lehman.com (Henry Katz)
jrml@dps.state.vt.us (Jim McLean-Lipinski) ***
pjw@ccci.com (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:

        ftp.cme.nist.gov:/pub/expect

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: j.cheng@cc.uq.edu.au
St. Lucia QLD 4072
AUSTRALIA
--------------------------------------------------------------------------------



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