Not load the 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)
TriggeredBy: ● shadow.timer

journalctl --no-hostname --no-pager -u shadow.service

systemd[1]: Started Verify integrity of password and group files.
systemd[1]: shadow.service: Deactivated successfully.

Is the process of normal service?
Can you please help me?
Thank you.

It is a system service which Verify integrity of password and group files. It is triggered by:

once per day.

2 Likes

You can investigate the service by running
systemctl cat shadow.service
which will show:

# /usr/lib/systemd/system/shadow.service
[Unit]
Description=Verify integrity of password and group files
After=systemd-sysusers.service

[Service]
Type=simple
# 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'
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7

You can see that it runs both the programs pwck and grpck. With man pwck and man grpck you can see that they are used to “verify the integrity” of the shadow files.

1 Like

Thank you

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.