Re: useradd problems

Martin Herren <[email protected]>
Newsgroups gmane.linux.suse.sparc
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+CCi3ENZb8plGFLQRAnsHAKCow+qFtHehZiU2xwSkFumN4IiIIACcDlXi
R/kxGZyqb9rp+GTdaGaJtgM=
=BEjB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.