LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-19-2005, 08:21 AM   #1
haora
Member
 
Registered: Mar 2005
Distribution: SuSE 9.1, Ubuntu 5.10
Posts: 69

Rep: Reputation: 15
useradd not working


Hi all, I'm trying to create a new user in my box...., and this is what I do:

"sudo useradd -r login_name -p password"

And even though the user is created, when I do: "su login_name" and enter the password, it says "incorrect password"..., what's up with that???

I'm sure I'm entering the right password...., how come it doesn't work????

Any ideas???

Thanks in advance....

Fernando
 
Old 04-19-2005, 08:32 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
If you use "useradd", then don't set the password using the -p flag because it doesn't encrypt the password. You need to set the password using the "passwd" command as root after creating the user e.g. "passwd username".
 
Old 04-19-2005, 08:37 AM   #3
haora
Member
 
Registered: Mar 2005
Distribution: SuSE 9.1, Ubuntu 5.10
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks! it worked!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using Useradd spud Linux - Newbie 6 03-10-2005 04:50 PM
useradd command not working in terminal mcmanta Linux - Newbie 11 05-12-2004 02:05 PM
'useradd' not working. reesee Linux - Newbie 1 02-28-2004 01:05 PM
Useradd not working HaZaRdOuS Linux From Scratch 2 11-25-2003 11:08 PM
useradd qdickens Linux - General 4 11-02-2001 03:41 PM


All times are GMT -5. The time now is 10:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration