Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 156620 - Permissions are incorrect on /etc/ntp
Permissions are incorrect on /etc/ntp
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: ntp (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Petr Raszyk
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-05-02 11:59 EDT by Joshua Weage
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-24 04:17:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joshua Weage 2005-05-02 11:59:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Description of problem:
ntpd produces the following error in /var/log/messages:

can't open /etc/ntp/drift.TEMP: Permission denied

The default /etc/sysconfig/ntpd config runs ntpd as the ntp user, which is fine.  However, the ntpd user cannot write to /etc/ntp by default, so ntpd is unable to create the drift file.

The solution is to change the permissions on /etc/ntp to ntp:root and chmod 775.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Enable ntpd
2.  See error about drift.TEMP in syslog

Expected Results:  No error messages.

Additional info:
Comment 1 Torkil Zachariassen 2005-10-19 11:39:28 EDT
The manual says the drift file should be in /var/lib/ntp, which is owned by
ntp.ntp mode 755.

Perhaps a line like
  driftfile /var/lib/ntp/drift
is required in

Comment 2 Petr Raszyk 2005-10-24 04:17:10 EDT
To comment #1

Thanks .
# Drift file.  Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift
broadcastdelay  0.008

Note You need to log in before you can comment on or make changes to this bug.