Create multiple users same time in batch mode
Written By smart|
17 June 2009|
No Comment
Here are the steps for creating multiple users same time in batch mode.
username and passwords are stored in clear text format make sure only root can read/write the file. Use chmod command:
admin@smartproteam$ touch /root/multipleusers.txt
admin@smartproteam$ chmod 0600 /root/multipleusers.txt
Create a user list as follows:
admin@smartproteam$ gedit /root/multipleusers.txt
Append username and password:
ram:pass1980:500:500:ram sagar:/home/ram:/bin/bash
—
—
—-
Now create users in batch:
admin@smartproteam$ newusers /root/multipleusers.txt











Leave your response!