You are not logged in.
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
Did you merge any pacnew files?
pwck and grpck will help you. https://wiki.archlinux.org/index.php/Us … #File_list
Offline
Offline
@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 changesOffline
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
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
Have you read https://wiki.archlinux.org/index.php/Pa … save_files ?
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
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