Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 117894 - /etc/init.d/ntpd should call ntpdate with -U ntp
/etc/init.d/ntpd should call ntpdate with -U ntp
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: ntp (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Miroslav Lichvar
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-03-09 14:21 EST by Jordan Russell
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2007-0414
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-11 14:51:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0414 normal SHIPPED_LIVE ntp bug fix update 2007-06-07 17:18:50 EDT

  None (edit)
Description Jordan Russell 2004-03-09 14:21:39 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):

How reproducible:

Steps to Reproduce:

Actual Results:  ntpdate runs as 'root'

Expected Results:  ntpdate runs as 'ntp'

Additional info:

ntpd is run with "-U ntp" (see /etc/sysconfig/ntpd) so this issue is 
specific to the ntpdate call.
Comment 1 Harald Hoyer 2004-03-10 03:36:53 EST
ntpdate has not been patched to drop root privileges, yet...
Comment 2 Jordan Russell 2004-03-10 03:45:10 EST

I can run "ntpdate -U ntp ..." by hand and it works.

Also "man ntpdate" mentions the -U option.
Comment 3 Harald Hoyer 2004-03-10 03:55:52 EST
oops... forgot about that :) ... ok, then you are right :)
Comment 7 Lubomir Kundrak 2007-02-13 12:07:28 EST
Removing Security keyword, because there's no known exploit vector.
Comment 12 Red Hat Bugzilla 2007-06-11 14:51:43 EDT
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.


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