1 |
On Sunday 12 March 2006 19:43, David Corbin wrote: |
2 |
> On Sunday 12 March 2006 04:28 pm, Peter Ruskin wrote: |
3 |
> > On Sunday 12 March 2006 20:16, David Corbin wrote: |
4 |
> > > ntp-client is in my "default" run level. However, when I it runs |
5 |
> > > at boot time, I get this error message: |
6 |
> > > |
7 |
> > > 12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root |
8 |
> > > privileges: Operation not permitted |
9 |
> > > 12 Mar 09:06:26 ntpd[9561]: parent died before we finished, |
10 |
> > > exiting |
11 |
> > > |
12 |
> > > |
13 |
> > > If I run it as root manually, it runs fine. |
14 |
> > |
15 |
> > Add nodroproot to your USE flags and remerge ntp |
16 |
> |
17 |
> I will, but why does it work fine "from the command line"? |
18 |
> |
19 |
> > -- |
20 |
> > Peter |
21 |
> > ======================================================================== |
22 |
> > Gentoo Linux: Portage 2.0.54. kernel-2.6.15-gentoo-r5. |
23 |
> > i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.4.5. |
24 |
> > KDE: 3.5.1. Qt: 3.3.4. |
25 |
> > ======================================================================== |
26 |
Hi, |
27 |
Because when it wants to drop it's privileges from root to e.g. ntpd (user or |
28 |
group) it can't - get's killed. |
29 |
Usually permission problems or in this case it/ntpd can't access /proc to set |
30 |
time (cap_set_proc()). |
31 |
Just a sidenote, recently (a day ago) exchanged "ntp" for "openntpd" (from |
32 |
OpenBSD) on a hardened router, because ntp wanted to lock too much memory |
33 |
(RLIMIT_MEMLOCK - from 32K (default) -> ~8 MB) and other minor issues. |
34 |
HTH.Rumen |