On Wednesday, February 27, 2008 at 3:29:58 AM UTC+8, Dennis Hilberg, Jr. wrote: > I've had this issue with authentication for a while, but decided to finally > ask as it's bugging me. > > I use ntpdc to add/remove servers on the fly so I don't have to restart the > server. It works fine using addserver and unconfig as long as I don't quit > ntpdc. > > saturn:$ ntpdc > ntpdc> addserver 63.240.161.99 > Keyid: 1 > MD5 Password: > done! > ntpdc> unconfig 63.240.161.99 > done! > > However, if I quit ntpdc, start ntpdc, issue the unconfig command and put in > the proper password when prompted, it won't be accepted. addserver works > fine though. > > ntpdc> quit > saturn:$ ntpdc > ntpdc> addserver 63.240.161.99 > Keyid: 1 > MD5 Password: > done! > ntpdc> quit > saturn:$ ntpdc > ntpdc> unconfig 63.240.161.99 > MD5 Password: > ***Permission denied > ntpdc> quit > saturn:$ ntpdc > ntpdc> unconfig 63.240.161.99 > MD5 Password: > ***Permission denied > ntpdc> readkeys > ***Permission denied > > The only way I've found to get it to work is to quit again and issue the > readkeys command. The readkeys command won't be accepted until I quit and > restart ntpdc again. > > ntpdc> quit > saturn:$ ntpdc > ntpdc> readkeys > Keyid: 1 > MD5 Password: > done! > ntpdc> unconfig 63.240.161.99 > done! > > Am I doing something wrong, is there a bug, or is that the correct behavior > of ntpdc? > > I have the following in my ntp.conf: > > # Authentication > > keys /etc/ntp/keys > > trustedkey 1 > requestkey 1 > controlkey 1 > > And my keys file looks like this: > > 1 M somepassword > > > Thanks, > > Dennis > > -- > Dennis Hilberg, Jr. \ timekeeper(at)dennishilberg(dot)com > NTP Server Information: \ http://saturn.dennishilberg.com/ntp.php
Hi, I'm lately upgrading the ntp from 4.6.5 to 4.8.1p, when I use ntpq to add server, it prompted for a keyid and MD5 password. I don't know how to get this keyid and password. Before the upgrade, the keyid is 0, so it doesn't need authentification. Can you tell me how to get the keyid and password? Thank you. _______________________________________________ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions