You are not logged in.

#1 2015-05-19 16:33:35

stozi
Member
Registered: 2010-03-02
Posts: 149

screwed up /etc/group & /etc/gshadow?

I'm getting some odd errors, as posted here, and a [fail] on boot about checking password integrity. I think I haven't updated my group & gshadow files correctly. here they are:

/etc/group

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
proc:x:26:
http:x:33:
games:x:50:
lock:x:54:
uuidd:x:68:
dbus:x:81:
network:x:90:
video:x:91:
audio:x:92:
optical:x:93:
floppy:x:94:
storage:x:95:
scanner:x:96:
input:x:97:
power:x:98:
nobody:x:99:
users:x:100:
systemd-journal:x:190:
systemd-journal-gateway:x:191:
systemd-timesync:x:192:
systemd-network:x:193:
systemd-bus-proxy:x:194:
systemd-resolve:x:195:
systemd-journal-remote:x:999:
systemd-journal-upload:x:998:
colord:x:124:
avahi:x:84:
chrony:x:183:
proc:x:26:

/etc/gshadow

root:::root
bin:::root,bin,daemon
daemon:::root,bin,daemon
sys:::root,bin
adm:::root,daemon
tty:::
disk:::root
lp:::daemon
mem:::
kmem:::
wheel:::root
ftp:::
mail:::
uucp:::
log:::root
utmp:x::
locate:::
rfkill:x::
smmsp:::
http:::
games:::
lock:::
uuidd:x::
dbus:x::
network:x::
video:x::
audio:::
optical:::
floppy:x::
storage:x::
scanner:x::
input:x::
power:x::
nobody:::
users:::
systemd-journal:::
systemd-journal-gateway:::
systemd-timesync:::
systemd-network:::
systemd-bus-proxy:::
systemd-resolve:::
systemd-journal-remote:!!::
systemd-journal-upload:!!::
colord:!::
avahi:!::
chrony:!::
proc:!::

thanks

Last edited by stozi (2015-05-19 21:05:37)

Offline

#2 2015-05-19 16:58:09

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: screwed up /etc/group & /etc/gshadow?

There is a dedicated utility to verify those, which is also where the errors come from, have a look at `grpck`.

Also, you shouldn't edit those files manually; use groupmod/add/del instead

Last edited by Spider.007 (2015-05-19 16:58:45)

Offline

#3 2015-05-19 17:02:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: screwed up /etc/group & /etc/gshadow?

Post the errors: https://bbs.archlinux.org/viewtopic.php?id=57855


Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-05-19 17:11:32

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: screwed up /etc/group & /etc/gshadow?

ok, didn't want to double-post, but

Interface 'wlp2s0' is controlled by netctl-auto
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: 
GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20)
Failed to restart netctl-auto@wlp2s0.service: Connection timed out
Usage: netctl-auto {COMMAND} ...
                   [--help|--version]

Commands:
  list                 List available profiles (active='*', disabled='!')
  current              List currently active profiles
  switch-to [PROFILE]  Switch to a profile, enable it if necessary
  enable [PROFILE]     Enable a profile for automatic selection
  disable [PROFILE]    Disable a profile temporarily for automatic selection
  enable-all           Enable all profiles for automatic selection
  disable-all          Disable all profiles temporarily for automatic selection

EDIT: this error appears both on cli and from within in X11.

btw, when group.pacnew and gshadow.pacnew arrive, how do I know how to merge them with the old ones?

Last edited by stozi (2015-05-19 17:14:21)

Offline

#5 2015-05-19 17:19:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: screwed up /etc/group & /etc/gshadow?

Err, I was referring to the errors related to the files in your thread title...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-05-19 17:26:34

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: screwed up /etc/group & /etc/gshadow?

glad you moved this to NC, since I assumed the error above started appearing shortly after I tried to update group & gshadow that there was a connection. The other error failing to verify passwords only appears occassionally on boot.

Offline

#7 2015-05-19 17:52:35

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: screwed up /etc/group & /etc/gshadow?

If it is related, you'll find out after resolving any issues with /etc/{group,gshadow} and then you can report it in the other thread that is dedicated to that error.

This thread is about the validity of /etc/{group,gshadow}, so please focus on that:

Spider.007 wrote:

There is a dedicated utility to verify those, which is also where the errors come from, have a look at `grpck`.

Offline

#8 2015-05-19 19:38:00

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: screwed up /etc/group & /etc/gshadow?

ran grpck, removed one double entry. netctl error remains. After a couple uploads the boot error hasn't popped up yet.

Offline

#9 2015-05-19 20:47:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: screwed up /etc/group & /etc/gshadow?

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2015-05-19 21:19:08

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: screwed up /etc/group & /etc/gshadow?

sure except that the error appeared again during boot!

[failed] Failed to start Verify integrity of password and group files.

tried pwck, a user group was missing, might be ok now, will wait a few boots to be sure

Offline

Board footer

Powered by FluxBB