From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079072816117.tru64-unix-managers.marc@archive.invalid> From: don () andromeda ! campbellsvil ! edu (Don H ! Olive) Date: Wed, 15 Sep 1999 23:39:19 +0000 To: tru64-unix-managers Subject: batch of passwords X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079072816117 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