automating add user accounts
help:
any idea how to create 1000 user accounts automatically using shell scripts? thks |
The command "/usr/sbin/useradd" is the interface to create/manage users accounts in linux.
You need a input file with user information (login name, password, full user name, ...) and iterate over this file. Something like that: Code:
for line in $(cat /tmp/user.data); do good luck PS: Start with a small set of test users, John Doe One, John Doe Two, John Doe three in the input file. When your script is ready, you can start the real thing. |
Another idea: Do you already have those users in a Windows Server ?
The command "net rpc user -l -U Administrator%xxxx -S ip_of_server" will return a list of all windows users in that server. You can use the "comment " field to pass additional information, like password, or FullName or both. Then, use this as input to your script. |
All times are GMT -5. The time now is 03:11 AM. |