Alright, I’ll remove the package and keep monitoring shadow.service.
According to
● shadow.timer - Daily verification of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.timer; static)
Active: active (waiting) since Fri 2021-12-31 05:59:27 CET; 12h ago
Until: Fri 2021-12-31 05:59:27 CET; 12h ago
Trigger: Sat 2022-01-01 00:00:00 CET; 5h 38min left
Triggers: ● shadow.service
the service should be triggered right before or just after the New Year my time.
Looks like removing netdata didn’t resolve the issue:
systemctl status shadow.service
× shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
Active: failed (Result: exit-code) since Sat 2022-01-01 00:00:01 CET; 12min ago
TriggeredBy: ● shadow.timer
Process: 11263 ExecStart=/bin/sh -c /usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r (code=exited, status=1/FAILURE)
Main PID: 11263 (code=exited, status=1/FAILURE)
CPU: 12ms
Jan 01 00:00:01 arch-gnome systemd[1]: Started Verify integrity of password and group files.
Jan 01 00:00:01 arch-gnome sh[11264]: user 'netdata': directory '/var/cache/netdata' does not exist
Jan 01 00:00:01 arch-gnome sh[11264]: pwck: no changes
Jan 01 00:00:01 arch-gnome systemd[1]: shadow.service: Main process exited, code=exited, status=1/FAILURE
Jan 01 00:00:01 arch-gnome systemd[1]: shadow.service: Failed with result 'exit-code'.
Not sure why I am still getting user 'netdata': directory '/var/cache/netdata' does not exist
No, nothing to do with BTRFS.
It is required by base, accountservice, util-linux, git:
pacman -Qi shadow
Name : shadow
Version : 4.8.1-4
Description : Password and account management tool suite with support for shadow files and PAM
Architecture : x86_64
URL : https://github.com/shadow-maint/shadow
Licenses : BSD
Groups : None
Provides : None
Depends On : pam acl libacl.so=1-64 audit libaudit.so=1-64 libcap-ng libcap-ng.so libxcrypt libcrypt.so=2-64
Optional Deps : None
Required By : accountsservice base git util-linux
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 3.73 MiB
Packager : Christian Hesse <arch@eworm.de>
Build Date : Mon 07 Sep 2020 03:42:01 PM CEST
Install Date : Sat 28 Aug 2021 05:10:17 PM CEST
Install Reason : Installed as a dependency for another package
Install Script : Yes
Validated By : Signature
Trying to restart shadow.service fails again but this time it complains about something else:
systemctl status shadow.service
× shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
Active: failed (Result: exit-code) since Sat 2022-01-01 01:32:06 CET; 17s ago
TriggeredBy: ● shadow.timer
Process: 13833 ExecStart=/bin/sh -c /usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r (code=exited, status=1/FAILURE)
Main PID: 13833 (code=exited, status=1/FAILURE)
CPU: 27ms
Jan 01 01:32:06 arch-gnome systemd[1]: Started Verify integrity of password and group files.
Jan 01 01:32:06 arch-gnome sh[13834]: invalid password file entry
Jan 01 01:32:06 arch-gnome sh[13834]: delete line ''? No
Jan 01 01:32:06 arch-gnome sh[13834]: pwck: no changes
Jan 01 01:32:06 arch-gnome systemd[1]: shadow.service: Main process exited, code=exited, status=1/FAILURE
Jan 01 01:32:06 arch-gnome systemd[1]: shadow.service: Failed with result 'exit-code'.
$ sudo pwck
invalid password file entry
delete line ''? y
pwck: the files have been updated
And:
$ sudo systemctl restart shadow.service
$ sudo systemctl status shadow.service
○ shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
Active: inactive (dead) since Sat 2022-01-01 02:05:02 CET; 9s ago
TriggeredBy: ● shadow.timer
Process: 2176 ExecStart=/bin/sh -c /usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r (code=exited, status=0/SUCCESS)
Main PID: 2176 (code=exited, status=0/SUCCESS)
CPU: 10ms
Jan 01 02:05:02 arch-gnome systemd[1]: Started Verify integrity of password and group files.
Jan 01 02:05:02 arch-gnome systemd[1]: shadow.service: Deactivated successfully.
systemctl status shadow.timer
● shadow.timer - Daily verification of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.timer; static)
Active: active (waiting) since Sat 2022-01-01 01:53:08 CET; 16min ago
Until: Sat 2022-01-01 01:53:08 CET; 16min ago
Trigger: Sun 2022-01-02 00:00:00 CET; 21h left
Triggers: ● shadow.service