[ILUG] craeting 100 users

hrishy hrishys at yahoo.co.uk
Fri Aug 31 13:04:38 IST 2001


Hello all

i am trying to create 100 users....i ahve developed
the logic for it but now i am facing a small problem
.i am using aryan linux where the 


counter=1
while [$counter .le. 100]
do 
{
    useradd usr$counter -p usr$counter
counter=eval '$counter + 1
}
done

however the problem here is my flavour of linux does
not support useradd with -p option....it has a command
for creating a passwd which prompts for a new password
.since i am crearting users in bulk i dont wont to
have passwords at prompt.

regards
hrishy 


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




More information about the ILUG mailing list