LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-16-2003, 02:26 AM   #1
(l.winthorst)
LQ Newbie
 
Registered: Aug 2003
Location: Ohio & Washington, DC
Distribution: RedHat/Debian/Knoppix
Posts: 5

Rep: Reputation: 0
passwd problems


Hi! I'm a newbie, but I thought that the question I have might go better in this forum. I just installed RedHat 9 for the first time and tried to create some new users. I ran into some stiff problems, and here they are:

I can run passwd fine as root.

Then, just adding references to the new users in /etc/passwd & /etc/group worked to create the new users, but when I ran passwd as root with their names, and when I logged on as them and ran passwd, it allowed me to type in the new passwords but returned this message:

"passwd: User not known to the underlying authentication module "

I apoligize for my bad english, but I'm mad sleepy.

Next I tried the adduser command. Again, it added users. When I used the -p (password) switch it also created users. But when I tried to log on as these users with the password, even though I know it was the same, I was told it was "incorrect."

Finally, I tried to run the add new users dialog in X. When nothing happenned, I found the script it pointed to: /usr/bin/redhat-config-users or something like that. I ran this from the terminal and had a lot of pythonish program-breaking (useful and informative) garbage being thrown back at me.

I then turned the computer off in frustration, but if you need the exact message I can power it up and run it again tomorrow, but now I must sleep.

Thanks for any help possible,
Phil Hughes

--p.s. I'm having a worse day now that I realized I misspelled my username -- dammit! it should be (l.windthorst)
 
Old 08-16-2003, 12:43 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try this as root:
useradd USERNAME
passwd USERNAME
 
Old 08-16-2003, 06:14 PM   #3
(l.winthorst)
LQ Newbie
 
Registered: Aug 2003
Location: Ohio & Washington, DC
Distribution: RedHat/Debian/Knoppix
Posts: 5

Original Poster
Rep: Reputation: 0
It returns the same "passwd: User not known..." error.
 
Old 08-16-2003, 07:01 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Verify that there are no duplicate entries in the following files.
/etc/passwd
/etc/group
/etc/shadow

You can also try to remove what you did.
Code:
userdel -r username
groupdel groupname
 
Old 08-16-2003, 07:17 PM   #5
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

if you have setup shadow passwords manually adding group and user names wont work. delete everything you created.

type adduser username
passwd username and enter your password twice

that should do it

redhat-config-user does throw up useless info from console.dont worry about that

regards
rahul sundaram
 
Old 08-17-2003, 01:37 PM   #6
(l.winthorst)
LQ Newbie
 
Registered: Aug 2003
Location: Ohio & Washington, DC
Distribution: RedHat/Debian/Knoppix
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, that worked.

Thanks a whole lot! I look forward to the day I can hang out here and help out some new guys.

One last thing, though, if you have any time -- why did that work, and what was I doing wrong before. I remember while installing there was a prompt that said "shadow passwords" somewhere, but neither of my two books nor anything I found online mentioned that my choice there had an impact on how I could add/delete users and their passwords.

Thanks again!
Phil
 
Old 08-17-2003, 02:19 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
I am assuming you removed what you did and tried again using the commands or the GUI.

In your original post, you mentioned you added new entries in /etc/passwd and /etc/group,
but you forgot to add an entry in /etc/shadow
 
Old 08-18-2003, 03:44 AM   #8
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

shadow passwords are stored in /etc/shadow instead of /etc/passwd which is encrypted but readable by everyone. this also helps with passwords which have a length more than 8.

so you should add to /etc/shadow if you have enabled that

regards
rahul sundaram
 
Old 10-21-2003, 12:30 PM   #9
rdonovan
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
The other thing to remember about the useradd -p option, at least in RedHat 9.0, is that it puts an unencrypted password in the password field in /etc/shadow when the account is created, which doesn't work well from a security standpoint.

RD
 
  


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
NIS Change passwd problems.. HELP bubsgt95 Linux - Server 6 09-11-2009 08:21 AM
passwd romel Linux - Security 1 04-25-2004 01:12 AM
about passwd jnzhang Linux - General 7 07-08-2003 04:32 PM
can't passwd leihsun Linux - General 17 06-19-2002 05:37 AM
passwd Winter Linux - Security 2 05-01-2002 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:38 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