[CentOS] help - batch account creation

Mon Aug 3 18:56:02 UTC 2009
nate <centos at linuxpowered.net>

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'

       --stdin
              This option is used to indicate that passwd should read the
new password from standard input, which can be a pipe.