You are not logged in.

#1 2018-02-22 15:51:25

bnkrt
Member
Registered: 2018-02-22
Posts: 4

Some groups are doubled in /etc/groups

I was creating a group to share files between accounts on my laptop and found that some groups existed two times, some of them i know i can delete (gdm,lightdm) but what is up with the others? 
Could need some advice here. interestingly shadow.service fails on gdm and lightdm groups and gives me no info whatsoever on the other doubled groups

bin:x:981:daemon
bin:x:1:daemon
daemon:x:982:bin
daemon:x:2:bin
ftp:x:11	
ftp:x:14	
gdm:x:120	
gdm:x:969	
lightdm:x:620	
lightdm:x:973	
mail:x:12	
mail:x:980	

output systemctl status shadow.service:

[chris@tp-w520 bin]$ systemctl status shadow.service
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2018-02-22 00:00:06 CET; 16h ago
  Process: 20636 ExecStart=/bin/sh -c /usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r (code=exited, status=2)
 Main PID: 20636 (code=exited, status=2)

Feb 22 00:00:06 tp-w520 sh[20636]: Zeile »lightdm:!!::« löschen?Nein
Feb 22 00:00:06 tp-w520 sh[20636]: Doppelter Eintrag für shadow-Gruppe
Feb 22 00:00:06 tp-w520 sh[20636]: Zeile »lightdm:!!::« löschen?Nein
Feb 22 00:00:06 tp-w520 sh[20636]: Doppelter Eintrag für shadow-Gruppe
Feb 22 00:00:06 tp-w520 sh[20636]: Zeile »gdm:!!::« löschen?Nein
Feb 22 00:00:06 tp-w520 sh[20636]: Doppelter Eintrag für shadow-Gruppe
Feb 22 00:00:06 tp-w520 sh[20636]: Zeile »gdm:!!::« löschen?Nein
Feb 22 00:00:06 tp-w520 sh[20636]: grpck: Keine Änderungen
Feb 22 00:00:06 tp-w520 systemd[1]: shadow.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 22 00:00:06 tp-w520 systemd[1]: shadow.service: Failed with result 'exit-code'.

system is up-to-date (2018/02/22), let me know if you need additional information

edit: add output systemctl status shadow.service

Last edited by bnkrt (2018-02-22 15:56:41)

Offline

#2 2018-02-22 16:04:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Some groups are doubled in /etc/groups

You may want to take a peek at https://wiki.archlinux.org/index.php/UID_and_GID_list.  You need to rectify to that.
Somehow, you have groups assigned in a manner other than Arch would have done.  Are you using some sketchy tutorial or install scripts by chance?  Edit:  Did you install over another distribution?

Edit:  Oh, yeah.  Welcome to Arch Linux.  smile

Last edited by ewaller (2018-02-22 16:05:38)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-02-22 16:09:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Some groups are doubled in /etc/groups

Had someone on IRC with the same issue, we weren't able to figure out how it happened. Just searched the filesystem to make sure there was nothing owned by the duplicate GIDs, then deleted them.

Offline

#4 2018-02-22 16:20:50

bnkrt
Member
Registered: 2018-02-22
Posts: 4

Re: Some groups are doubled in /etc/groups

Thanks for the welcome ewaller smile not that 'new' on arch (1.5yrs) but i would still consider me a newbie^^
i installed arch clean from live-iso following the wiki, so no sketchy tutorials or install scripts or installing over a system
Some extra-steps because laptop and thinkpad and dedicated graphics (tp smapi, bumblebee, ...) but nothing out of order
I will have a look at the link

edit: thanks Scimmia, so basically run

find / group "doubled_group"

and if there are no results simply delete the group?

Last edited by bnkrt (2018-02-22 16:24:51)

Offline

Board footer

Powered by FluxBB