LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2003, 01:50 PM   #1
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
RH9 useradd probelms


hi all!
so i got an rh9 box running and i wanna add a user via the useradd command. Normally I use the fansy dansy gui "redhat-config-users" but I'm ssh'ing in, so no gui for me.(stupid macintosh ssh client ;P)
so i type in
useradd -p password user
Then i try to login thru my imap client, or ssh, or just loging in on the actual box. It always comes up with invalid username or password. So I checked the /etc/passwd file and there is an entry that states
user:x:504:504::/home/user:/bin/bash
Now when I'm on the machine using the redhat-config-users command, it'll add a user and work a-ok, but not the command line. What the hell am I doing wrong?
 
Old 10-20-2003, 02:04 PM   #2
snerfu
Member
 
Registered: Sep 2003
Distribution: Debian/GNU
Posts: 30

Rep: Reputation: 15
What happens if you don't specify the password via the useradd command, and instead specify it after with:

passwd username

Will it allow you to ssh in correctly then?
 
Old 10-20-2003, 06:40 PM   #3
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Original Poster
Rep: Reputation: 15
W00T!!

dude! your trick werked, i dont know why i didnt think of that. if you're ever in the vancouver area, drop me a line, i owe you a beer
 
Old 10-20-2003, 07:14 PM   #4
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Well obviously the -p password option will not work as that is supposed to be a 128 bit encrypted password string which u cannot specify manually.

However you can manually ceate a user and set the password in a single command...

useradd <username>; echo <password>| passwd <username> --stdin

alternatively, you can first create a new user and later on set the user password as suggested by snerfu.

Regards,

amit
 
  


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
useradd problem with period "." on RH9.0 atcg Linux - Distributions 0 01-02-2004 01:55 AM
Printing probelms RH9 GNOME tt3ad Linux - Hardware 5 10-31-2003 10:32 AM
Printing probelms RH9 GNOME tt3ad Linux - Newbie 0 10-30-2003 11:40 AM
installation probelms (please help) chittico Linux - Newbie 2 10-23-2003 02:29 AM
xine probelms dejan_j Linux - Software 14 06-17-2003 03:11 AM


All times are GMT -5. The time now is 02:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration