LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2004, 09:15 PM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
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
 
Old 08-11-2004, 09:25 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
this is how I do it; http://www.gentoo.org/doc/en/handboo...p=11#doc_chap1
 
Old 08-12-2004, 07:04 AM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
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
 
Old 08-12-2004, 07:15 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 08-12-2004, 12:36 PM   #5
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
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.

 
Old 08-12-2004, 12:46 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 08-12-2004, 12:51 PM   #7
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

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

http://www.linuxquestions.org/questi...eradd+password
 
Old 08-12-2004, 01:02 PM   #8
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
thanks




Thanks Donboy !


 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd:'invalid user name' error when creating a machine account on RedHat Linux ES4 santosh0805 Linux - General 1 07-12-2005 08:39 AM
useradd-error ahmed4linux Linux - General 2 12-25-2004 09:18 AM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM
useradd cyrush Linux - Distributions 3 01-21-2003 09:40 PM
useradd qdickens Linux - General 4 11-02-2001 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration