You are not logged in.

#1 2015-08-19 14:12:39

siv
Member
Registered: 2014-04-18
Posts: 25

[Solved] - shadow.service - failed to verify

The system fails to verify the shadow service.

I got:

[root@siv-arch ~]# systemctl status shadow
● 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 mer 2015-08-19 15:49:19 CEST; 17min ago
  Process: 320 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 320 (code=exited, status=2)

ago 19 15:49:18 siv-arch systemd[1]: Starting Verify integrity of password and gro......
ago 19 15:49:19 siv-arch pwck[320]: user 'plex': directory '/opt/plexmediaserver' ...ist
ago 19 15:49:19 siv-arch pwck[320]: user 'mediatomb': directory '/var/lib/mediatom...ist
ago 19 15:49:19 siv-arch pwck[320]: user 'mediabrowser': directory '/var/lib/media...ist
ago 19 15:49:19 siv-arch pwck[320]: user 'deluge': directory '/srv/deluge' does no...ist
ago 19 15:49:19 siv-arch pwck[320]: pwck: no changes
ago 19 15:49:19 siv-arch systemd[1]: shadow.service: Main process exited, code=exi...ENT
ago 19 15:49:19 siv-arch systemd[1]: Failed to start Verify integrity of password ...es.
ago 19 15:49:19 siv-arch systemd[1]: shadow.service: Unit entered failed state.
ago 19 15:49:19 siv-arch systemd[1]: shadow.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.

I see that in the /etc/shadow there are several users that I think that they do not exist anymore (for example I have unistalled mediatomb, deluge, ...). Same in the /etc/passwd.
There is a way to update /etc/passwd and /etc/shadow with only existing users?

Or there is a way to list only existing users on the system in order to manually edit the /etc/passwd with vipw?

Last edited by siv (2015-08-20 08:56:49)

Offline

#2 2015-08-19 14:18:50

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

Re: [Solved] - shadow.service - failed to verify

Did you merge any pacnew files?
pwck and grpck will help you. https://wiki.archlinux.org/index.php/Us … #File_list

Offline

#3 2015-08-19 14:19:56

mpan
Member
Registered: 2012-08-01
Posts: 1,680
Website

Re: [Solved] - shadow.service - failed to verify

What pwck gives?

Offline

#4 2015-08-19 14:44:59

siv
Member
Registered: 2014-04-18
Posts: 25

Re: [Solved] - shadow.service - failed to verify

@karol
No, I don't. I don't know how to do this. I'm trying vimdiff and there are differences but I don't know what rows are newer.

@mpan

[root@siv-arch ~]# pwck
user 'plex': directory '/opt/plexmediaserver' does not exist
user 'mediatomb': directory '/var/lib/mediatomb' does not exist
user 'mediabrowser': directory '/var/lib/mediabrowser-server' does not exist
user 'deluge': directory '/srv/deluge' does not exist
pwck: no changes

Offline

#5 2015-08-19 14:59:57

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

Re: [Solved] - shadow.service - failed to verify

  • If the users are in /etc/passwd, they exist.

  • Not terribly important in this case, but don't post ellipsized or otherwise incomplete/edited output (note the "Hint" at the bottom).

  • You probably deleted the corresponding packages while the services were still running (as those users). This prevented the users from being removed along with the files and directories. You can manually deleted these users now.

Offline

#6 2015-08-19 15:13:38

siv
Member
Registered: 2014-04-18
Posts: 25

Re: [Solved] - shadow.service - failed to verify

Thanks Raynman. I have deleted the user listed by pwck with "userdel".

Now pwck shows no errors and "systemctl restart shadow" and "systemctl status shadow" seem ok.

P.S.
Do you think that this is a good way to handle the pacnew files?

Last edited by siv (2015-08-19 15:25:01)

Offline

#7 2015-08-19 15:28:01

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

Re: [Solved] - shadow.service - failed to verify

Offline

#8 2015-08-20 08:56:33

siv
Member
Registered: 2014-04-18
Posts: 25

Re: [Solved] - shadow.service - failed to verify

Yeah I have read that page.

There are many third-part tools but I saw that script and it seems very simple. However I'll continue to analyze that.

Thanks

Offline

Board footer

Powered by FluxBB