Re: [gentoo-user] Add new user with a specif password in script

2003-11-09 Thread Andrew Farmer
On Sun, 09 Nov 2003 10:41:30 -0800, [EMAIL PROTECTED] muttered: > 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" op

[gentoo-user] Add new user with a specif password in script

2003-11-09 Thread romildo
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