Configure Time Service Clients

Red Hat Enterprise LinuxBeginner
Practice Now

Introduction

In this challenge, you will practice configuring a time service client on a Red Hat Enterprise Linux system. Maintaining accurate system time is critical for many services, including logging, file timestamping, and security protocols. You will configure the system to synchronize its clock with a remote Network Time Protocol (NTP) server.

Configure Time Service Clients

Your goal is to configure the system's time service, chrony, to use a specific public NTP server. You will also set the correct time zone and verify that the system clock is synchronized.

Tasks

  • Ensure the chrony package is installed (it may already be present).
  • Configure chrony to use a specific NTP server as its time source.
  • Set the system's time zone to America/New_York.
  • Ensure the chrony service is running and verify that the system time is synchronized.

Requirements

  • The NTP server address must be time.google.com.
  • The system time zone must be set to America/New_York.
  • The chrony configuration file is located at /etc/chrony.conf. You should comment out any existing pool or server directives before adding the new one.
  • The system clock must be successfully synchronized with the NTP server.

Example

After completing the configuration, checking the time service status should produce output similar to the following. The key is to confirm that System clock synchronized is yes and the Time zone is correct.

timedatectl status
               Local time: Thu 2025-08-14 04:32:33 EDT
           Universal time: Thu 2025-08-14 08:32:33 UTC
                 RTC time: Thu 2025-08-14 08:32:33
                Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Summary

In this challenge, you have successfully configured a time service client on a RHEL system. You installed the chrony package, modified its configuration to point to a public NTP server, set the correct system time zone, and started the service. You also learned how to verify the synchronization status using timedatectl and chronyc. These are fundamental skills for any system administrator to ensure system clocks are accurate and reliable.

✨ Check Solution and Practice