{"id":1445,"date":"2018-11-18T12:43:13","date_gmt":"2018-11-18T09:43:13","guid":{"rendered":"http:\/\/kifarunix.com\/?p=1445"},"modified":"2024-03-11T21:34:01","modified_gmt":"2024-03-11T18:34:01","slug":"how-to-install-and-configure-ntp-server-using-ntpd-on-fedora-29-fedora-28","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-and-configure-ntp-server-using-ntpd-on-fedora-29-fedora-28\/","title":{"rendered":"How to Install and Configure NTP Server Using NTPd on Fedora 29\/Fedora 28"},"content":{"rendered":"\n

This is yet another guide on how to install and configure NTP server using NTPd on Fedora 29\/Fedora 28. Step through this guide in order to setup your NTP server for automatic time adjustments.. In our previous article, we learnt how to setup NTP server using Chronyd<\/strong> on Fedora28\/Fedora29<\/a>.<\/p>\n\n\n\n

Installing NTP Server Using NTPd on Fedora 29\/Fedora 28<\/h2>\n\n\n\n

Install NTPd on Fedora<\/h3>\n\n\n\n

The ntpd deamon is provided by the ntp package. Therefore, run the command below to install ntpd.<\/p>\n\n\n\n

dnf install ntp -y<\/code><\/pre>\n\n\n\n

In order to use ntpd the default user space daemon, chronyd, must be stopped and disabled, if at all it is installed on the same system. Run the commands below to stop and disable chronyd from restarting at system start.<\/p>\n\n\n\n

systemctl stop chronyd\nsystemctl disable chronyd<\/code><\/pre>\n\n\n\n

To start and enable ntpd at system start, run the following command;<\/p>\n\n\n\n

systemctl start ntpd\nsystemctl enable ntpd<\/code><\/pre>\n\n\n\n

Configure NTP on Fedora<\/h2>\n\n\n\n

The main configuration file for NTP is \/etc\/ntp.conf<\/code>. This file is installed together with ntpd and is configured to use time servers from the Fedora pool by default.<\/p>\n\n\n\n

Configure Acces control to NTP service<\/h4>\n\n\n\n

Access to the NTP service can be controlled or restricted by making the use of the restrict<\/code>command in the ntp.conf file. The command syntax is;<\/p>\n\n\n\n

restrict option<\/code>  where option can be;<\/p>\n\n\n\n