Add new user with a specif password in script

roberto pallucchini r.pallucchini at palluk.ig3.net
Sun Nov 9 19:04:00 UTC 2003


you can add a new user with adduser then  set the password with passwd
command.

roberto

Il dom, 2003-11-09 alle 19:41, romildo at uber.com.br ha scritto:
> Hello.
> 
> What command(s) should I use in order to
> add a new user to my system (from a bash
> script) and specify a default (not null)
> password for this user?
> 
> I see that the command "useradd" does have
> the "-p passwd" option, but the "passwd"
> should be encrypted, as returned by crypt(3).
> Then how can I obtain the encrypted password?
> 
> Any clues?
> 
> Romildo
> 
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> http://www.redhat.com/mailman/listinfo/fedora-list
-- 
/**
 * Roberto Pallucchini
 *
 * e-mail: r.pallucchini at palluk.ig3.net
 * web   : www.palluk.ig3.net
 */
$Id: Poewred by Fedora Core 1





More information about the users mailing list