Configuring Time Service

Nov 18, 2025

Managing Linux Time

  • hwclock used to set hardware time and synchronize
    • hwclock --systohc
    • hwclock --hctosys
  • date
  • timedatectl used to manage time and time zone configuration

Using timedatectl

  • timedatectl status shows all current time properties
  • timedatectl set-time changes time
  • timedatectl set-timezone changes timezone
  • timedatectl set-ntp enables or disables NTP time synchronization
  • An NTP service is used to synchronize time using NTP
    • RHEL 10 uses chrony (cronyd.service)

Managing NTP Client

  • /etc/chrony.conf
    • pool 2.rhel.pool.ntp.org iburst configures a pool of NTP servers
    • server myserver.example.com configures a single NTP server
    • User iburst to permit fast synchronization

Lab Exercise

  1. Configure your system to synchronize time with the servers in pool.ntp.org
  2. Configure your local NTP process to advertise time services as a stratum - server
Solution
  1. add/modify /etc/chrony.conf to include pool pool.ntp.org iburst
  2. add/modify /etc/chrony.conf to include local stratum 10
systemctl restart chronyd
chronyc sources

- Clint Jordan