[CentOS] help - batch account creation
dleon741210 at gmail.com
Mon Aug 3 19:31:20 UTC 2009
I found this
This command is intended to be used in a large system environment
where many accounts are updated at a single time (batch mode). Since
username and passwords are stored in clear text format make sure only
root can read/write the file.
Use chmod command:
# touch /root/batch-user-add.txt
# chmod 0600 /root/batch-user-add.txt
Create a user list as follows. Open file:
# vi /root/batch-user-add.txt
Append username and password:
Now create users in batch:
# newusers /root/batch-user-add.txt
On 8/3/09, nate <centos at linuxpowered.net> wrote:
> David Leon wrote:
>> I'm trying to avoid typing every password manually. I just need an
>> script that makes the job.
>> useradd creates the account but still need to setup accpunt's password.
> from 'man passwd'
> This option is used to indicate that passwd should read the
> new password from standard input, which can be a pipe.
> CentOS mailing list
> CentOS at centos.org
More information about the CentOS