Bugs item #1084690, was opened at 2004-12-13 13:38
Message generated for change (Settings changed) made by bernardli
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=1084690&group_id=9368

Category: Installation
Group: 4.1
>Status: Closed
Resolution: Fixed
Priority: 6
Submitted By: Mengjuei Hsieh (mjhsieh)
Assigned to: Bernard Li (bernardli)
Summary: (FC2) ntpd pemission warning on client nodes

Initial Comment:
OS: fedora-release-2-4
OSCAR Version: 4 (trunk)
NTP Version: ntp-4.2.0-7

A lot of ntpd warning logs were found on FC2 client nodes. For 
example, the warnings are like this:

Dec 11 15:14:07 node1 ntpd[3521]: can't open /etc/ntp/drift.TEMP:
Permission denied
Dec 11 16:14:10 node1 ntpd[3521]: can't open /etc/ntp/drift.TEMP:
Permission denied

This only happens when the owner of /etc/ntp is not 'ntp', the ntpds 
seem to be still working. However these messages would 
overwhelm the log file on the master node. Mugster reported that 
it was okay on ntp-4.1.2-0.rc1.2 (FC2), therefore I suspect that the  
/etc/ntp uid:gid somehow got changed after a certain system 
update (yum update).

A quick fix to avoid these warning messages would be:
1. # cexec "chown ntp:ntp /etc/ntp"
2. # chown ntp:ntp /var/lib/systemimager/images/oscarimage/etc/
ntp

Any patch on OSCAR scripts/post_rpm_install is welcomed. ;-)

----------------------------------------------------------------------

Comment By: Bernard Li (bernardli)
Date: 2005-02-15 16:34

Message:
Logged In: YES 
user_id=879102

Fixed, see also bug 1084640.

----------------------------------------------------------------------

Comment By: Bernard Li (bernardli)
Date: 2005-01-04 11:37

Message:
Logged In: YES 
user_id=879102

/etc/ntp.conf is generated by the ntpconfig package scripts 
post_server_install and post_rpm_install and that is what I 
am trying to modify.  Unfortunately it does not keep a backup 
of the original conf file which came with the rpm...  perhaps 
this could be changed...

----------------------------------------------------------------------

Comment By: David N. Lombard (dnl)
Date: 2005-01-04 11:32

Message:
Logged In: YES 
user_id=27334

Perhaps best is to glom the driftfile keyword from /etc/ntp.conf

----------------------------------------------------------------------

Comment By: Bernard Li (bernardli)
Date: 2005-01-04 11:04

Message:
Logged In: YES 
user_id=879102

Fernando sent in info about RHEL3ASU2:

ntp version = 4.1.2-4, uses /etc/ntp/drift

----------------------------------------------------------------------

Comment By: Jeff Squyres (jsquyres)
Date: 2005-01-04 04:06

Message:
Logged In: YES 
user_id=11722

You might want to do what we did in disable-services (now mta-config... 
and I'm pretty sure we did it elsewhere in OSCAR, too, but nothing 
immediately jumps to mind): use a foreach kind of loop to look for the 
given file in a number of different "known" locations (e.g., all the different 
locations that various distros put it).

You'll find it in one of the locations of your foreach loop, and then you can 
move forward with the rest of the setup.  If you don't find it, you can 
throw an error / warning, yadda yadda yadda.

It's not perfect, but it should be "good enough".

An alternative solution is to have foreach iterate over everything returned 
by "locate <filename>" until you find the file you want, but this presumes 
that the locate database is up-to-date, which probably isn't a good 
assumption (e.g., consider a first install where slocate hasn't been run 
yet).

----------------------------------------------------------------------

Comment By: Bernard Li (bernardli)
Date: 2005-01-03 21:36

Message:
Logged In: YES 
user_id=879102

Initially thought that ntp version < 4.2 uses /etc/ntp/drift and 
version >= 4.2 uses /var/lib/ntp/drift but it seems that it is 
dependent on distro implementation.

On RH9, ntp version = 4.1.2-0.rc1.2, uses /etc/ntp/drift
On RH3AS, ntp version = 4.1.2-4.EL3.1, uses /var/lib/ntp/drift
On FC2, ntp version = 4.2.0.a.20040617-4, 
uses /var/lib/ntp/drift

Perhaps the best solution is to modify driftfile location on a 
case-by-case basis.

----------------------------------------------------------------------

Comment By: Bernard Li (bernardli)
Date: 2004-12-13 14:40

Message:
Logged In: YES 
user_id=879102

With FC2, the drift file should be at /var/lib/ntp (which is 
correctly owned by ntp user).  The provided ntp.conf by 
OSCAR is wrong.

The ntpconfig package needs to be updated to reflect this 
(possibly a problem with RHEL too?)

See the following thread:

http://groups-
beta.google.com/group/alt.os.linux.suse/browse_thread/thread
/3a8df0814f9a1ab1/baeaa64a5f4ff04e?q=can%27t+open+%
2Fetc%2Fntp%2Fdrift.TEMP:+Permission+denied&_done=%
2Fgroups%3Fhl%3Den%26lr%3D%26q%3Dcan%27t+open+%
2Fetc%2Fntp%2Fdrift.TEMP:+Permission+denied%26btnG%
3DSearch%
26&_doneTitle=Back+to+Search&&d#baeaa64a5f4ff04e

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=1084690&group_id=9368


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to