On Thu, 20 Jun 2002, Jerome BENOIT wrote:
Another stupid question: You *ARE* doing this as root, right? It
has to be run as root.
Yes
The manpage for ntpdate says that "-d" won't actually set the
clock. Does "ntpdate -v -B ntp.apple.com" work (that is, without
the "-d")?
without the "-d" it does not work.
That the point:
I CANNOT set the clock !
Have you done any messing with capabilities? In src/kernel/time.c:
/* In order to modify anything, you gotta be super-user! */
if (txc->modes && !capable(CAP_SYS_TIME))
return -EPERM;
Also, are you using a standard kernel or a custom one? I'm thinking that
maybe the adjtimex() system call got broken somehow, as that's what
ntpdate uses to set the time.