You are not logged in.

#1 2016-01-30 10:26:43

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

[SOLVED] Verify integrity of password shadow.service failed

 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 Sat 2016-01-30 11:27:58 EST; 23min ago
  Process: 282 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 282 (code=exited, status=2)

Jan 30 11:27:58 archpc systemd[1]: Starting Verify integrity of password and group files...
Jan 30 11:27:58 archpc systemd[1]: shadow.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 30 11:27:58 archpc systemd[1]: Failed to start Verify integrity of password and group files.
Jan 30 11:27:58 archpc systemd[1]: shadow.service: Unit entered failed state.
Jan 30 11:27:58 archpc systemd[1]: shadow.service: Failed with result 'exit-code'.
Jan 30 11:27:59 archpc pwck[282]: user 'gdm': directory '/var/lib/gdm' does not exist
Jan 30 11:27:59 archpc pwck[282]: user 'deluge': directory '/srv/deluge' does not exist
Jan 30 11:27:59 archpc pwck[282]: pwck: no changes

I tried deleting those users but...

userdel: user 'deluge' does not exist
userdel: user 'gdm' does not exist

I checked also /etc/group, /etc/passwd and /etc/shadow files and there's nothing about them, searched carefully with Vim...
So what can I do?

Last edited by asdfiex (2016-01-30 11:15:00)

Offline

#2 2016-01-30 10:38:47

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Verify integrity of password shadow.service failed

Have you tried running pwck manually?

Offline

#3 2016-01-30 10:46:19

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: [SOLVED] Verify integrity of password shadow.service failed

Well obviously userdel won't be successful because as pwck already pointed out, the respective user does not exist. Check the files /etc/passwd and /etc/passwd- (and maybe the group and shadow files, too) for lines which contain those non-existing users. But please be careful.
This mismatch comes from packages which register a new user or group and delete them when the package is deinstalled, but don't update the passwd files. I had these problems with colord and avahi.

Last edited by FlowIt (2016-01-30 10:47:19)

Offline

#4 2016-01-30 10:57:05

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

Re: [SOLVED] Verify integrity of password shadow.service failed

Are you kidding me? After restart (without any related purpose) everything  it seems to work fine!

 
shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: inactive (dead)

Ok, I runned pwck command to check its functionality and I have another question.
After running the command there's no returning code as it says in the manual...


"
The pwck command exits with the following values:

0

    success
1
    invalid command syntax
2
    one or more bad password entries
3
"

Better said, there's no response in the terminal (I tried redirecting it too with tee comand to a text file and it's still empty).

Last edited by asdfiex (2016-01-30 10:57:40)

Offline

#5 2016-01-30 10:58:29

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Verify integrity of password shadow.service failed

Silence == Success wink


Jin, Jîyan, Azadî

Offline

#6 2016-01-30 11:01:24

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: [SOLVED] Verify integrity of password shadow.service failed

You can also check the bash variable $? which is set to the return code of the last command.

Offline

#7 2016-01-30 11:06:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Verify integrity of password shadow.service failed

@asdfiex, as FlowIt mentioned, those refer to the exit codes.

Offline

#8 2016-01-30 11:12:17

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

Re: [SOLVED] Verify integrity of password shadow.service failed

Thank you, again! All clear now.
And after getting in the dark with tee and its useless file check that's what I call a very refreshing bash variable, FlowIt!
Cheers!

Offline

Board footer

Powered by FluxBB