script to create multiple users automatically

0 views
Skip to first unread message

naresh

unread,
Jun 18, 2007, 9:52:10 AM6/18/07
to Delhi/NCR Linux Users Group
You can use below script to create multiple users automatically:

"#!/bin/bash
for i in `seq 1 3`;
do
/usr/local/apache2/bin/htdigest /home/naresh/passwd "Test ID" user$i
done"

Replace 3 in above script with the number of your username
requirement. In this user name will be user1, user2 and user3.

Thanks
Naresh

Reply all
Reply to author
Forward
0 new messages