On Tue, 24 Dec 2002 05:55:19 +0000
M Hoskison <[EMAIL PROTECTED]> wrote:

> RedHat allows you to pipe a password into useradd by using the --stdio 
> switch. SuSE 7.3 for Sparc doesn't permit this option, nor does it appear to 
> present one similar. Could anyone suggest an alternative that allows a script 
> (PHP shell_exec()'ing bash, but that should be immaterial) to create a user 
> account and set its password?

create the account with useradd, and to change/create the password in batch, you can 
use chpasswd

hth

Martin


-- 
Open your Windows - Free your Mind - Enjoy
http://gnuwin.epfl.ch

Martin Herren                             +41 (0)79 746 57 83
OpenPGP Public key @ http://www.on-the-web.ch/sputnik/gpg.asc

Attachment: msg00627/pgp00000.pgp
Description: PGP signature

Reply via email to