Try this:
David Leon wrote:from 'man passwd'
> 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.
>
--stdin
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@centos.org
http://lists.centos.org/mailman/listinfo/centos