2.1.4.3 Ensure ntp is running as user ntp - RUNASUSER

Information

The ntp package is installed with a dedicated user account ntp. This account is granted the access required by the ntpd daemon

Note:

If chrony or systemd-timesyncd are used, ntp should be removed and this section skipped

This recommendation only applies if ntp is in use on the system

Only one time synchronization method should be in use on the system

Rationale:

The ntpd daemon should run with only the required privilege

Solution

Add or edit the following line in /etc/init.d/ntp:

RUNASUSER=ntp

Run the following command to restart ntp.service:

# systemctl restart ntp.service

OR
If another time synchronization service is in use on the system, run the following command to remove ntp from the system:

# apt purge ntp

Default Value:

user ntp

See Also

https://workbench.cisecurity.org/files/4115