You want create Bulk users in Red Hat Linux, Please follow these steps.
How to Create Multiple Users in a Single Command.

Step 1. Login as root and open terminal

Step2. Type the following commands in the linux prompt

for i in $(seq 1 99); - ("This script will add 99 users")
do
adduser username$i;
passwd -d username$i; - ("This will remove password for user")
done

That's all 99 user created now.

For Example:
If you want create user with username from eec1 to eec500 then you have to run the following script:

for i in $(seq 1 99);
do
adduser eec$i;
passwd -d eec$i;
done
The above script will create users from eec1 to eec99, then follow the below steps to add balance users

for i in $(seq 100 500);
do
adduser eec$i;
passwd -d eec$i;
done
The above script will create users from eec100 to eec 500.

0 comments:

Post a Comment

 
Top