You are not logged in.

#1 2011-12-06 11:56:42

Registered: 2007-04-12
Posts: 26

Warning: /etc/group or /etc/gshadow are inconsistant [solved]

Routine system update this morning included an update of shadow.  I received this following message:

"Warning: /etc/group or /etc/gshadow are inconsistant
Run 'grpck' to correct this."

So I run: sudo grpck
and received this message:
"group root has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'"
and so on for all other groups.

I'm worried that I won't be able to log in again on next reboot.  Please help!

Thanks in advance.

Last edited by NobodySpecial (2011-12-07 11:14:11)


#2 2011-12-06 11:58:35

Registered: 2009-05-06
Posts: 25,428

Re: Warning: /etc/group or /etc/gshadow are inconsistant [solved]

You need to add 'x' on the lines that are missing it. … 22178.html
A proper line in /etc/group should looks like 'video:x:91:root,karol' ('karol' is my username, so details will be different, I only wanted to show you where the 'x' should go)

The relevant bug report, see the reason for closing

Last edited by karol (2011-12-06 12:02:46)


#3 2011-12-06 13:28:22

From: New York, USA
Registered: 2009-10-22
Posts: 4,095

Re: Warning: /etc/group or /etc/gshadow are inconsistant [solved]

Actually, I believe the proper fix in this case is to remove the password from the root group and mark the group's entry in /etc/group with an 'x'. A while back, a change was made to the stock /etc/group file to denote 'x' as no password rather than '!'. The default group and gshadow files have the following entries for root:

# grep '^root:' /etc/g{roup,shadow}


#4 2012-01-11 04:37:03

From: .earth
Registered: 2010-02-18
Posts: 907

Re: Warning: /etc/group or /etc/gshadow are inconsistant [solved]

[deleted content]

EDIT 9/6/2013 12:40am: Here are two helpful articles on the format of lines in /etc/group and /etc/gshadow:
* … roup-file/
* … hadow.html

Last edited by trusktr (2013-09-06 07:45:19) - joe at true skater dot io.


Board footer

Powered by FluxBB