[arch-general] Problems with shadow service

Ralf Mardorf silver.bullet at zoho.com
Thu Dec 13 06:01:30 UTC 2018


On Wed, 12 Dec 2018 22:28:40 +0100, Peter Nabbefeld wrote:
>As system seems to run without problems (other than performance), I've 
>got two questions:
>
>1. Do I need the shadow service? Why?

If verifying the integrity of group files and/or password files fails, I
wouldn't call it an install "without problems".

[rocketmouse at archlinux ~]$ grep '#' -A1 /usr/lib/systemd/system/shadow.service
# Always run both checks, but fail the service if either fails
ExecStart=/bin/sh -c '/usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r'
[rocketmouse at archlinux ~]$ apropos pwck
pwck (8)             - verify integrity of password files
[rocketmouse at archlinux ~]$ pwck --help | grep read-only -A1
  -r, --read-only               display errors and warnings
                                but do not change files
[rocketmouse at archlinux ~]$ apropos grpck
grpck (8)            - verify integrity of group files
[rocketmouse at archlinux ~]$ grpck --help | grep read-only -A1
  -r, --read-only               display errors and warnings
                                but do not change files

>2. Why does it fail?

See above.


More information about the arch-general mailing list