Red Hat Bugzilla – Bug 117894
/etc/init.d/ntpd should call ntpdate with -U ntp
Last modified: 2007-11-30 17:07:00 EST
Description of problem:
/etc/init.d/ntpd calls ntpdate as follows:
/usr/sbin/ntpdate -s -b -p 8 $tickers
It's missing "-U ntp", so ntpdate ends up running with root
privileges. Running network programs with root privileges when they
aren't needed of course isn't good for security.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: ntpdate runs as 'root'
Expected Results: ntpdate runs as 'ntp'
ntpd is run with "-U ntp" (see /etc/sysconfig/ntpd) so this issue is
specific to the ntpdate call.
ntpdate has not been patched to drop root privileges, yet...
I can run "ntpdate -U ntp ..." by hand and it works.
Also "man ntpdate" mentions the -U option.
oops... forgot about that :) ... ok, then you are right :)
Removing Security keyword, because there's no known exploit vector.
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.