Red Hat Bugzilla – Bug 112273
dhclient overwrites ntp.conf
Last modified: 2007-04-18 13:00:17 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)
Description of problem:
When dhclient retrieves an ntp server from the dhcp server, then
/sbin/dhclient-script overwrites /etc/ntp.conf instead of modifying
/etc/ntp.conf or adding the ntp server to /etc/ntp.conf.
Also the sysadmin should be able to turn off any modifications to
/etc/ntp.conf with a variable in
/etc/sysconfig/network-scripts/ifcfg-eth0, similar to PEERDNS=no for
not modifying /etc/resolv.conf.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Server: dhcp server including one or more ntp servers in the reply.
- ntp up and running, with /etc/ntp.conf manually edited
- dhclient fetching ip address and ntp servers from the dhcp server
Actual Results: The file /etc/ntp.conf is overwritten.
Expected Results: The file /etc/ntp.conf should be modified, either
by adding the new ntp servers, or by replacing the ntp servers.
The sysadmin should have an option, similar to PEERDNS for
/etc/resolv.conf, to turn of any modifications to /etc/ntp.conf.
Workaround: modify /sbin/dhclient-script to no longer modify ntp.conf.
Solution: modify /sbin/dhclient-script to support PEERNTP similar to
Changed component to "dhcp".
dhcp-3_0pl2-6_16 has support for PEERNTP.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.