View previous topic :: View next topic |
Author |
Message |
jufeng n00b
Joined: 28 May 2007 Posts: 8
|
Posted: Thu Sep 06, 2007 2:44 am Post subject: Is ntpdate only synchronize with domainname server |
|
|
# ntpdate 218.59.75.203
6 Sep 10:38:41 ntpdate[5015]: no server suitable for synchronization found
# ntpdate 0.asia.pool.ntp.org
6 Sep 10:39:00 ntpdate[5016]: adjust time server 203.181.37.152 offset 0.079104 sec
#
Is ntpdate only synchronize with domainname server |
|
Back to top |
|
|
wuzzerd Guru
Joined: 05 Jan 2005 Posts: 466 Location: New Mexico
|
Posted: Thu Sep 06, 2007 3:13 am Post subject: |
|
|
I synchronizes with a time server.
218.59.75.203 is an address on the on Shandong Provincial Network in Beijing. It apparently has no time server.
203.181.37.152 is one of the addresses returned by 0.asia.pool.ntp.org.
Code: | #dig 0.asia.pool.ntp.org | lists eight different addresses. All of them are name servers since that is what ntp.org does. |
|
Back to top |
|
|
jufeng n00b
Joined: 28 May 2007 Posts: 8
|
Posted: Thu Sep 06, 2007 5:44 am Post subject: |
|
|
wuzzerd wrote: | I synchronizes with a time server.
218.59.75.203 is an address on the on Shandong Provincial Network in Beijing. It apparently has no time server.
203.181.37.152 is one of the addresses returned by 0.asia.pool.ntp.org.
Code: | #dig 0.asia.pool.ntp.org | lists eight different addresses. All of them are name servers since that is what ntp.org does. |
Thank you very much.
I understood.
Thank you again.
Do you know this problem https://bugs.gentoo.org/show_bug.cgi?id=41827. |
|
Back to top |
|
|
snIP3r l33t
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 06, 2007 7:01 am Post subject: |
|
|
what problem do you exactly mean?? the last post from george?? if so, in my config i also have no opts. ntpd is started as root.
Code: |
# /etc/conf.d/ntpd
# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS=""
|
i have installed 4.2.4_p0 on an amd machine.
HTH
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
|
jufeng n00b
Joined: 28 May 2007 Posts: 8
|
Posted: Thu Sep 06, 2007 9:19 am Post subject: |
|
|
snIP3r wrote: |
what problem do you exactly mean?? the last post from george?? if so, in my config i also have no opts. ntpd is started as root.
Code: |
# /etc/conf.d/ntpd
# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS=""
|
i have installed 4.2.4_p0 on an amd machine.
HTH
snIP3r |
Yes, I mean the last post from george. If I add NTPD_OPTS="-u ntp:ntp -s" in /etc/conf.d/ntpd, ntpd can't be start.
Anyone here have the same problem as george?
And anyone here know this error:
# /etc/init.d/ntpd start
* Starting ntpd ... [ ok ]
# ntpq -p
ntpq: read: Connection refused
/etc/ntp.conf:
server pool.ntp.org
logfile /var/log/ntpd.log
driftfile /var/lib/ntp/ntp.drift
Thank you kindly.
Last edited by jufeng on Thu Sep 06, 2007 9:27 am; edited 1 time in total |
|
Back to top |
|
|
snIP3r l33t
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 06, 2007 9:24 am Post subject: |
|
|
hi!
look at the postings above:
Code: |
...
error messages:
# /etc/init.d/ntpd start
* Starting ntpd ...
/usr/sbin/ntpd: invalid option -- u
usage: ntpd [-dSs] [-f file]
* Failed to start ntpd
...
|
the -u option is no longer valid. so u only can add -s to your NTPD_OPTS.
HTH
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
|
jufeng n00b
Joined: 28 May 2007 Posts: 8
|
Posted: Thu Sep 06, 2007 9:37 am Post subject: |
|
|
snIP3r wrote: | hi!
look at the postings above:
Code: |
...
error messages:
# /etc/init.d/ntpd start
* Starting ntpd ...
/usr/sbin/ntpd: invalid option -- u
usage: ntpd [-dSs] [-f file]
* Failed to start ntpd
...
|
the -u option is no longer valid. so u only can add -s to your NTPD_OPTS.
HTH
snIP3r |
#man ntpd
-u string, --user=string
Run as userid (or userid:groupid).
Specify a user, and optionally a group, to switch to. This option is only
available if the OS supports to run the server without full root privileges.
Currently, this option is supported under NetBSD (configure with --enable-
clockctl ) and Linux (configure with --enable-linuxcaps ).
There is no invalid info?
If -u is invalid, do you know how to run on droproot?
thank you. |
|
Back to top |
|
|
snIP3r l33t
Joined: 21 May 2004 Posts: 853 Location: germany
|
|
Back to top |
|
|
jufeng n00b
Joined: 28 May 2007 Posts: 8
|
Posted: Thu Sep 13, 2007 10:48 am Post subject: |
|
|
Hi snIP3r
I find where's the problem.
In Geoge's setup: net-misc/ntp-4.2.4-r1 USE="caps openntpd ssl -debug -ipv6 -parse-clocks(-selinux)
There is oponntpd in use flags, so the ntpd is openntpd's ntpd not ntp's ntpd.
In openntpd there is no -u option and the config file should be ntpd.conf not ntp.conf.
Openntpd will spawn a process using ntp:ntp user.
So now I just use openntpd, comparing with ntp there are many advantages.
Thank you kindly. |
|
Back to top |
|
|
snIP3r l33t
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 13, 2007 12:53 pm Post subject: |
|
|
jufeng wrote: | Hi snIP3r
I find where's the problem.
In Geoge's setup: net-misc/ntp-4.2.4-r1 USE="caps openntpd ssl -debug -ipv6 -parse-clocks(-selinux)
There is oponntpd in use flags, so the ntpd is openntpd's ntpd not ntp's ntpd.
In openntpd there is no -u option and the config file should be ntpd.conf not ntp.conf.
Openntpd will spawn a process using ntp:ntp user.
So now I just use openntpd, comparing with ntp there are many advantages.
Thank you kindly. |
nop, you're welcome!
i use ntp's ntpd but had a vew errors last time. next time i get an error again i will use openntp's ntpd
greets
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
|
|