Re: [ntp:questions] ntpq authentication problem
On Saturday, February 28, 2015 at 2:55:02 PM UTC+8, Jan Ceuleers wrote: > On 28/02/15 03:47, catherine.wei1...@gmail.com wrote: > > Is there anything wrong in my operation? Thank you. > > Only thing I can think of is that the keys file might not be owned by > root. Is it? I found out the reason, I set disable authentication when ntpd started in my program. when I enable authentication, the authenticate passes. Thank you for your help. I still have a doubt: the key file is generated on my PC (as the first ntp server) , when I copied it to the box(client), and I changed the box's ntp server to a second server "3.cn.pool.ntp.org" or some other ntp servers. The authentication still passes. Why is that? ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] ntpq authentication problem
On 28/02/15 08:48, catherine.wei1...@gmail.com wrote: > I still have a doubt: the key file is generated on my PC (as the first ntp > server) , when I copied it to the box(client), and I changed the box's ntp > server to a second server "3.cn.pool.ntp.org" or some other ntp servers. The > authentication still passes. Why is that? ntpq talks directly to the ntpd process over the network. If you run ntpq without specifying where the server is located it talks to ntpd on localhost. Which time sources ntpd uses is immaterial. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] moving from ntpdc to ntpq
On 28/02/2015 01:17, catherine.wei1...@gmail.com wrote: [] Hi, Harlan In my system, ntpdc was used to add an ntp server and the command is like this: ntpdc -c "keyid 0" -c addserver 10.172.161.16 minpoll 3 maxpoll 4 burst since keyid is 0, we don't need authentication. But now, I use ntpq to replace ntpdc, if I add :config before "addserver", I need to authenticate. Is there any way to avoid authenticate in ntpq utility? Thank you. I don't know how to addserver in ntpq. There's little knowledge about this on the Internet. Thank you so much. Catherine, Could you remind me again why you need to add and remove servers rather than letting NTP get on with the job? The pool directive allows NTP to add an discard servers as it needs, with NTP monitoring each server's performance. Could that be an alternative approach? If you are in a test environment, what's wrong with simply editing ntp.conf and restarting? -- Cheers, David Web: http://www.satsignal.eu ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions