Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-09-2008, 05:06 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 29

Rep: Reputation: 15
The user database cannot be read...

When I try to start system-config-users I get the following msg:

"The user database cannot be read. This problem is most likely caused by a mismatch between /etc/passwd and /etc/shadow or /etc/group and /etc/gshadow. The program will exit now."

I read that pwck would indicate the problem and allow for corrections to these files... I ran pwck, and delete some lines which were reported as problematic, but I still can't run system-config-users.

What should I do now?

Old 06-09-2008, 05:47 PM   #2
Registered: May 2008
Location: Iceland
Distribution: Ubuntu Hardy
Posts: 47

Rep: Reputation: 16
You need to compare /etc/passwd with /etc/shadow ( they should line up perfectly )
if that don't work you also need to check
/etc/goup vs /etc/gshadow

If there are not that many users defined on the box, then it will only take you a minute.

Old 08-16-2008, 02:57 AM   #3
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,283

Rep: Reputation: Disabled
I know this is an old post but you also have command
to fix group probs

2) hopefully the lines you deleted are not ones that you actually need?
can you remember what they were?

it should be safe to post your current passwd file....but do not post your shadow....if you are still having issues


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
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
restricted user to only read an other read and write in samba Gran_Maestre Linux - Security 0 02-12-2008 01:16 PM
"user database cannot be read" mehesque Linux - General 2 05-07-2004 05:04 PM
The User Database Cannot be Read andrewrees Linux - Newbie 1 05-01-2004 02:44 PM
How to read database backwards? morbid_ru Programming 3 12-15-2003 09:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 AM.

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