Information
System time should be synchronized between all systems in an environment. This is typically done by establishing an authoritative time server or set of servers and having all systems synchronize their clocks to them.
Notes:
- On virtual systems where host based time synchronization is available consult your virtualization software documentation and verify that host based synchronization is in use and follows local site policy. In this scenario, this section should be skipped
- Only one time synchronization method should be in use on the system. Configuring multiple time synchronization methods could lead to unexpected or unreliable results
Time synchronization is important to support time sensitive security mechanisms and ensures log files have consistent time records across the enterprise, which aids in forensic investigations.
Solution
On physical systems, and virtual systems where host based time synchronization is not available.
Select one of the two time synchronization daemons; chrony (1) or systemd-timesyncd (2) and following the remediation procedure for the selected daemon.
Note: enabling more than one synchronization daemon could lead to unexpected or unreliable results:
- chrony
Run the following command to install chrony :
# apt install chrony
Run the following commands to stop and mask the systemd-timesyncd daemon:
# systemctl stop systemd-timesyncd.service
# systemctl mask systemd-timesyncd.service
Note:
- Subsection:
Configure chrony
should be followed
- Subsection:
Configure systemd-timesyncd
should be skipped
<xhtml:ol start="2"> - systemd-timesyncd
Run the following command to remove the chrony package:
# apt purge chrony
# apt autoremove chrony
Note:
- Subsection:
Configure systemd-timesyncd
should be followed
- Subsection:
Configure chrony
should be skipped