Setting time with sntp doesnt work

Post Reply
mister_v
Posts: 139
Joined: Sat Jun 20, 2009 5:42 pm

Setting time with sntp doesnt work

Post by mister_v »

Hi,

I try to set the time with sntp on my linux server, but it doesn't work.

Code: Select all

#sntp -v -u -a ntp.server.com
sntp options: a=3 v=1 e=0.100 E=5.000 P=30.000
    d=15 c=5 x=0 op=1 l=/etc/sntp.pid f=ntp.server.com
The time correction is 598.773 +/- 0.000+0.000 seconds
Do you want to correct the time anyway? yes
sntp: unable to adjust current system time
sntp: Success
I don't get what goes wrong?
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Setting time with sntp doesnt work

Post by Chris »

Our you sure you have enough rights?

Try to do it as root.

The following usually works for me:

Code: Select all

sntp -r ntp.server.com
the -r option tells it to reset the system clock by settimeofday.
Post Reply