tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: don () andromeda ! campbellsvil ! edu (Don H !  Olive)
To: tru64-unix-managers
Subject: batch of passwords
Date: Wed, 15 Sep 1999 23:39:19 +0000	[thread overview]
Message-ID: <96079072816117.tru64-unix-managers.marc@archive.invalid> (raw)


I need to add about 1500 new accounts to a new system which is easy
enough to do using the useradd command.  I'll just make a shell script
with all the info in it and run it.  

The question I have is  on how to set 1500 passwords without actually
typing them in by hand.  Is there a way to set a password using a
command line argument or some way to pipe in to the passwd command.

I tried "passwd  <  word.txt"  

Where word.txt held a password on two separate lines but I still was
prompted.  I can't get passwd to accept anything from the standard
input.  

Any ideas would be greatly appreciated.

-- 
 Don H. Olive, Physics Department    don@campbellsvil.edu
 Campbellsville University           http://www2.campbellsvil.edu/~don
 UPO 1265, One University Drive      +1.270.789.5243 voice/+1.270.789.5042 fax
 Campbellsville KY, 42718 USA        PGP:  finger don@cygnus.campbellsvil.edu

                 reply	other threads:[~1999-09-15 23:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox