You are not logged in.
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 changesI tried deleting those users but...
userdel: user 'deluge' does not exist
userdel: user 'gdm' does not existI 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
Have you tried running pwck manually?
Offline
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
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
Silence == Success ![]()
Jin, Jîyan, Azadî
Offline
You can also check the bash variable $? which is set to the return code of the last command.
Offline
@asdfiex, as FlowIt mentioned, those refer to the exit codes.
Offline
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