LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2001, 05:56 PM   #1
leif
LQ Newbie
 
Registered: Mar 2001
Location: Oregon
Posts: 4

Rep: Reputation: 0
Question


I'm not sure what happened, but all of a sudden I was unable to add, modify, or delete users. I think it's related to the passwd issue brought up by steve@corp.gulf.net on 1999-05-22. I am using Red Hat 6.1, and it has been stable for about 15 months without any problems like this.

I can't add users. I get a "useradd: unable to open password file". (same error with the adduser command)

The only clue I have is that whenever I try to change a password I get a "Critical error - Immediate abort". Upon looking in the /var/log/messages file, I see these lines:

Mar 4 14:23:51 rover PAM_pwdb[6375]: user (xxx/533) update failed; pwdb: internal failure - seek help

Please advise. I have looked in /etc/passwd and /etc/shadow and the files look fine. I ran authconfig and was unable to affect any changes because I got the same "Unable to open password file" error.

It doesn't work using Webmin or Linuxconf either.

Thank you...

 
Old 03-05-2001, 06:54 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Angry

Install the source for passwd or useradd. Compile with debugging info on. Run gdb (gnu debugger) and step throught the code until you find the problem.

Sorry

Gary
 
Old 03-07-2001, 02:01 AM   #3
leif
LQ Newbie
 
Registered: Mar 2001
Location: Oregon
Posts: 4

Original Poster
Rep: Reputation: 0
password issue solved...

all fixed! This is from our ISP...thanks for everybody's help on this one...

> I did a
> chattr -i /etc/passwd
> chattr -a /etc/passwd
> and it didn't make a difference

> then I I did chattr -ia on /etc/shadow as well and 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo :adduser: unable to lock password file khamdy Linux - General 9 10-13-2010 06:26 AM
Kpilot 4.4.0 File Installer -Unable to Open File- Clie SJ-22 sephiro499 Linux - Software 0 10-04-2004 01:25 PM
Kpilot 4.4.0 File Installer -Unable to Open File- Clie SJ-22 sephiro499 Linux - Newbie 0 10-04-2004 01:43 AM
userdel: unable to lock password file asc3ndant Linux - General 1 06-20-2003 02:07 PM
unable to lock password file beefyd Linux - Security 3 09-08-2002 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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