Adding numerous users to a system quickly.
J.L.Francois
jlf@magusnet.gilbert.az.us
Mon, 28 Aug 2000 21:19:48 -0700
DISCLAIMER: USE AT YOUR OWN RISK.
=======================CUT HERE==================
for i in `cat list.of.users`
do
PASSWORD=`pwgen 8`
do useradd $i -p $PASSWORD
echo $i $PASSWORD > USER.AND.PASSWORD.LIST
done
=======================CUT HERE==================
Not elegant by any means but it does work.
It seems like on Mon, Aug 28, 2000 at 04:07:28PM -0700, Matt G. Ellis scribbled:
Orig Msg> I have a list of Names (first name, last name) and i would like to add all
Orig Msg> these users to my system. Are there any programs that can take a list of
Orig Msg> names, form a username, generate a password, and create a list of username
Orig Msg> and passwords after adding the user to the system?
Orig Msg>
Orig Msg> Thank you,
Orig Msg> Matt G. Ellis
Orig Msg>
Jean Francois - JLF Sends...
President & CEO - MagusNet, Inc., MagusNet.com, MagusNet.Gilbert.AZ.US
Director Of Managed Services - OpNIX,Inc., www.opnix.com
OpNIX - Simply Better Bandwidth