Useradd Error
Greetings! When I write the following command at prompt useradd -p <somepassword> <username> then when I tried to connect with ther user above created, when it ask me for password I enter it correctly but it says incorrect password, is there any syntax error or... I am using Red Hat 8.0 |
this is how I do it; http://www.gentoo.org/doc/en/handboo...p=11#doc_chap1
|
try useradd joebob
passwd joebob then enter the password try again... or adduser joebob will ask you a bunch of questions along with a password |
Re: Useradd Error
useradd -p <somepassword> <username> Syntax is correct, but you need to give the encrypted passwd, not the humanreadable one....... citrus answer is the easiest way to do it. |
Thanks !
Thanks citrus and druuna. For druuna, Please give me one example on how to create user with the following command, useradd -p <somepassword> <username> how can i provide encrypted passwd Looking forward for your response. |
You should search the forums for this topic. I have posted a script that I robbed from somewhere else a long time ago that will generate the encrypted password and use it in the useradd command exactly as you are wanting to do.
|
Awww, screw it... here's the post where I stole it... it was stolen from user "Idaho".
http://www.linuxquestions.org/questi...eradd+password |
thanks
Thanks Donboy ! |
All times are GMT -5. The time now is 05:23 PM. |