On Wed, 25 Apr 2001, Wyatt wrote:

> I want to add users through a shell script and have it set the
> password. I may be way off on this but it seems that useradd will not
> add a password for the user. You have to run passwd and get prompted

You can use "expect" to run (well, run & interact with) "passwd".

I use a perl script to read an entry file (of say, login\t password
columns), and write a file. The resulting file is a shell script that runs
expect for each user in turn.

Hossein




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to