useradd probleme

Ow Mun Heng Ow.Mun.Heng at wdc.com
Fri Aug 20 14:13:50 UTC 2004


On Fri, 2004-08-20 at 21:36, benjlijel CHAKIB wrote:
> hello 
> i have probleme whith the command useradd .i want to
> add a new user whith his passwd at the same time
> i write 
> useradd myusername -p myuserpasswd
You can do that only if the passwd is pre-encrypted. (eg: using crypt)


The other way to do it is actually to script it and pass the passwd from
stdin

passwd --stdin myuserpasswd


-- 
Ow Mun Heng
Fedora GNU/Linux Core 2 on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive 
Neuromancer 22:11:47 up 40 min, 5 users, load average: 0.48, 0.79, 0.72 





More information about the fedora-list mailing list