* Re: [gentoo-user] ntp problems
2006-03-12 21:28 ` Peter Ruskin
@ 2006-03-12 17:43 ` David Corbin
2006-03-13 5:22 ` Rumen Yotov
0 siblings, 1 reply; 5+ messages in thread
From: David Corbin @ 2006-03-12 17:43 UTC (permalink / raw
To: gentoo-user
On Sunday 12 March 2006 04:28 pm, Peter Ruskin wrote:
> On Sunday 12 March 2006 20:16, David Corbin wrote:
> > ntp-client is in my "default" run level. However, when I it runs
> > at boot time, I get this error message:
> >
> > 12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root
> > privileges: Operation not permitted
> > 12 Mar 09:06:26 ntpd[9561]: parent died before we finished,
> > exiting
> >
> >
> > If I run it as root manually, it runs fine.
>
> Add nodroproot to your USE flags and remerge ntp
I will, but why does it work fine "from the command line"?
>
> --
> Peter
> ========================================================================
> Gentoo Linux: Portage 2.0.54. kernel-2.6.15-gentoo-r5.
> i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.4.5.
> KDE: 3.5.1. Qt: 3.3.4.
> ========================================================================
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] ntp problems
@ 2006-03-12 20:16 David Corbin
2006-03-12 21:28 ` Peter Ruskin
0 siblings, 1 reply; 5+ messages in thread
From: David Corbin @ 2006-03-12 20:16 UTC (permalink / raw
To: gentoo-user
ntp-client is in my "default" run level. However, when I it runs at boot
time, I get this error message:
12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root privileges:
Operation not permitted
12 Mar 09:06:26 ntpd[9561]: parent died before we finished, exiting
If I run it as root manually, it runs fine.
Any ideas as to what the problem is?
David
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] ntp problems
2006-03-12 20:16 [gentoo-user] ntp problems David Corbin
@ 2006-03-12 21:28 ` Peter Ruskin
2006-03-12 17:43 ` David Corbin
0 siblings, 1 reply; 5+ messages in thread
From: Peter Ruskin @ 2006-03-12 21:28 UTC (permalink / raw
To: gentoo-user
On Sunday 12 March 2006 20:16, David Corbin wrote:
> ntp-client is in my "default" run level. However, when I it runs
> at boot time, I get this error message:
>
> 12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root
> privileges: Operation not permitted
> 12 Mar 09:06:26 ntpd[9561]: parent died before we finished,
> exiting
>
>
> If I run it as root manually, it runs fine.
>
Add nodroproot to your USE flags and remerge ntp
--
Peter
========================================================================
Gentoo Linux: Portage 2.0.54. kernel-2.6.15-gentoo-r5.
i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.4.5.
KDE: 3.5.1. Qt: 3.3.4.
========================================================================
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] ntp problems
2006-03-12 17:43 ` David Corbin
@ 2006-03-13 5:22 ` Rumen Yotov
2006-03-15 5:46 ` David Corbin
0 siblings, 1 reply; 5+ messages in thread
From: Rumen Yotov @ 2006-03-13 5:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]
On Sunday 12 March 2006 19:43, David Corbin wrote:
> On Sunday 12 March 2006 04:28 pm, Peter Ruskin wrote:
> > On Sunday 12 March 2006 20:16, David Corbin wrote:
> > > ntp-client is in my "default" run level. However, when I it runs
> > > at boot time, I get this error message:
> > >
> > > 12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root
> > > privileges: Operation not permitted
> > > 12 Mar 09:06:26 ntpd[9561]: parent died before we finished,
> > > exiting
> > >
> > >
> > > If I run it as root manually, it runs fine.
> >
> > Add nodroproot to your USE flags and remerge ntp
>
> I will, but why does it work fine "from the command line"?
>
> > --
> > Peter
> > ========================================================================
> > Gentoo Linux: Portage 2.0.54. kernel-2.6.15-gentoo-r5.
> > i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.4.5.
> > KDE: 3.5.1. Qt: 3.3.4.
> > ========================================================================
Hi,
Because when it wants to drop it's privileges from root to e.g. ntpd (user or
group) it can't - get's killed.
Usually permission problems or in this case it/ntpd can't access /proc to set
time (cap_set_proc()).
Just a sidenote, recently (a day ago) exchanged "ntp" for "openntpd" (from
OpenBSD) on a hardened router, because ntp wanted to lock too much memory
(RLIMIT_MEMLOCK - from 32K (default) -> ~8 MB) and other minor issues.
HTH.Rumen
[-- Attachment #2: Type: application/pgp-signature, Size: 200 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] ntp problems
2006-03-13 5:22 ` Rumen Yotov
@ 2006-03-15 5:46 ` David Corbin
0 siblings, 0 replies; 5+ messages in thread
From: David Corbin @ 2006-03-15 5:46 UTC (permalink / raw
To: gentoo-user
On Monday 13 March 2006 12:22 am, Rumen Yotov wrote:
> On Sunday 12 March 2006 19:43, David Corbin wrote:
> > On Sunday 12 March 2006 04:28 pm, Peter Ruskin wrote:
> > > On Sunday 12 March 2006 20:16, David Corbin wrote:
> > > > ntp-client is in my "default" run level. However, when I it runs
> > > > at boot time, I get this error message:
> > > >
> > > > 12 Mar 09:06:24 ntpd[9516]: cap_set_proc() failed to drop root
> > > > privileges: Operation not permitted
> > > > 12 Mar 09:06:26 ntpd[9561]: parent died before we finished,
> > > > exiting
> > > >
> > > >
> > > > If I run it as root manually, it runs fine.
> > >
> > > Add nodroproot to your USE flags and remerge ntp
> >
> > I will, but why does it work fine "from the command line"?
> Hi,
I don't mean to sound like child who continues to go "but why?". Still, it
doesn't make sense to me.
> Because when it wants to drop it's privileges from root to e.g. ntpd (user
> or group) it can't - get's killed.
First, I don't understand how root could ever have a permission problem try to
"downgrade its privleges".
Second, I don't understand how it could not have the require privileges during
the boot process (presumably running starting as root), and yet it works when
I run it by hand as root.
> Usually permission problems or in this case it/ntpd can't access /proc to
> set time (cap_set_proc()).
> Just a sidenote, recently (a day ago) exchanged "ntp" for "openntpd" (from
> OpenBSD) on a hardened router, because ntp wanted to lock too much memory
> (RLIMIT_MEMLOCK - from 32K (default) -> ~8 MB) and other minor issues.
> HTH.Rumen
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-15 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-12 20:16 [gentoo-user] ntp problems David Corbin
2006-03-12 21:28 ` Peter Ruskin
2006-03-12 17:43 ` David Corbin
2006-03-13 5:22 ` Rumen Yotov
2006-03-15 5:46 ` David Corbin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox