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 _______________________________________________ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions