You are not logged in.

#1 2014-06-11 00:57:02

simplemind
Member
Registered: 2013-06-13
Posts: 18

Shadow.service exits on startup and gives a error message when booting

Hello, I have recently installed arch linux on my laptop. It has been great except for a little annoying error which crops up in the black screen after grub.
It says that the shadow service was not started due to some error. when i went into the DE and did :

 sudo systemctl status shadow.service

I got the following output

shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
   Active: failed (Result: exit-code) since Wed 2014-06-11 06:10:24 IST; 11min ago
  Process: 207 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 207 (code=exited, status=2)

Jun 11 06:10:24 sentinel pwck[207]: add user 'systemd-journal-gateway' in /etc/shadow? No
Jun 11 06:10:24 sentinel pwck[207]: no matching password file entry in /etc/shadow
Jun 11 06:10:24 sentinel pwck[207]: add user 'systemd-timesync' in /etc/shadow? No
Jun 11 06:10:24 sentinel pwck[207]: no matching password file entry in /etc/shadow
Jun 11 06:10:24 sentinel pwck[207]: add user 'systemd-network' in /etc/shadow? No
Jun 11 06:10:24 sentinel pwck[207]: user 'mysql': directory '/home/mysql' does not exist
Jun 11 06:10:24 sentinel pwck[207]: pwck: no changes
Jun 11 06:10:24 sentinel systemd[1]: shadow.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 11 06:10:24 sentinel systemd[1]: Failed to start Verify integrity of password and group files.
Jun 11 06:10:24 sentinel systemd[1]: Unit shadow.service entered failed state.

can anyone tell me what the problem is or more like how to resolve this ?

Offline

#2 2014-06-11 01:28:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Shadow.service exits on startup and gives a error message when booting

See the man page for pwck.  It is what makes sure that /etc/passwd and /etc/shadow aren't borked.  I would have to guess that you merged these files as pacnews and didn't really look things over (or you just overwrote the old with the new).

Offline

#3 2014-06-11 07:39:10

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: Shadow.service exits on startup and gives a error message when booting

Thank you WonderWoofy. I had the exact same problem. Comes from the last systemd update and the new “systemd-journal-gateway” and “systemd-timesync” entries.
Runnning pwck to add theses two users to “/etc/shadow” fixed the problem.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#4 2014-06-23 02:36:18

simplemind
Member
Registered: 2013-06-13
Posts: 18

Re: Shadow.service exits on startup and gives a error message when booting

Thank you fixed the problem by running:

 sudo pwck
sudo grpck

and entering yes to all the given options.
Thank you again Wonderwoofy and Cthulhu82.

Offline

Board footer

Powered by FluxBB