LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Useradd Error (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-error-216463/)

LinuxRam 08-11-2004 09:15 PM

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

comprookie2000 08-11-2004 09:25 PM

this is how I do it; http://www.gentoo.org/doc/en/handboo...p=11#doc_chap1

citrus 08-12-2004 07:04 AM

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

druuna 08-12-2004 07:15 AM

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.

LinuxRam 08-12-2004 12:36 PM

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.


Donboy 08-12-2004 12:46 PM

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.

Donboy 08-12-2004 12:51 PM

Awww, screw it... here's the post where I stole it... it was stolen from user "Idaho".

http://www.linuxquestions.org/questi...eradd+password

LinuxRam 08-12-2004 01:02 PM

thanks
 



Thanks Donboy !




All times are GMT -5. The time now is 05:23 PM.