2.1.2.1 Ensure chrony is configured with authorized timeserver
Audit#
IF chrony is in use on the system, run the following command to display the server and/or pool directive:
Verify that at least one pool line and/or at least three server lines are returned, and the timeserver on the returned lines follows local site policy.
Output examples:
pool directive:
server directive:
Remediation#
Edit /etc/chrony/chrony.conf or a file ending in .sources in /etc/chrony/sources.d/ and add or edit server or pool lines as appropriate according to local site policy:
Examples:
pool directive:
server directive:
Run one of the following commands to load the updated time sources into chronyd running config:
OR if sources are in a .sources file
OR
If another time synchronization service is in use on the system, run the following command to remove chrony from the system: