You are not logged in.

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

NobodySpecial
Member
Registered: 2007-04-12
Posts: 28

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)

Offline

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

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

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

You need to add 'x' on the lines that are missing it.
http://mailman.archlinux.org/pipermail/ … 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 https://bugs.archlinux.org/task/27270

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

Offline

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

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

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}
/etc/group:root:x:0:root
/etc/gshadow:root:::root

Offline

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

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

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:
* http://www.cyberciti.biz/faq/understand … roup-file/
* https://access.redhat.com/site/document … hadow.html

Last edited by trusktr (2013-09-06 07:45:19)


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB