WII-Aaron
07-11-2002, 11:18 PM
Hi. I'm trying to get my server running Cpanel to use a different machine as a primary name server. I've followed the directions in the manual to set up a trust relationship and everything seemed to go well.
When I create a new account the script gets to the DNS section and gives me a permission denied error.
Permission denied, please try again.
I've searched both these forums and the cpanel forums and there are others with this problem but there are no solutions. Also, I sent in a support request to cpanel but there is no reply yet.
Any help would be GREATLY apreciated.
Thanks,
Aaron
Matt Lightner
07-14-2002, 03:27 AM
You should double-check that the trust relationship is working correctly. Try to SSH between the servers and see if it asks for a password. Sometimes the /scripts/trustme trust relationship will not work if the /root/.ssh directory does not work on the server that you want to be able to SSH to without a password. If that is the case, you might want to run the following commands on the server that you wish to be able to access without a password:
mkdir /root/.ssh
touch /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
After doing that, try creating the trust relationship again and see if you are able to SSH to the target server without a password.
WII-Aaron
07-15-2002, 10:34 AM
Great. I'll give that a shot. Thanks.
WII-Aaron
07-15-2002, 12:05 PM
That seemed to work. Now a couple other problems. First, I get these errors in the script:
Added Entries to httpd.conf (noip)
Added DomainAlias Entry
Added Named Entry
Added Named File
bash: /scripts/zoneexists: No such file or directory
bash: /usr/sbin/ndc: No such file or directory
Added Remote Named File
The zone still gets added so it's not a huge issue, the bigger problem is that BIND does not restart automatically. I have to go in and manually restart it before the changes will take place. Is there some way to make it do this after every change?
Aaron
Matt Lightner
07-15-2002, 01:36 PM
Try
ln -s /usr/sbin/rndc /usr/sbin/ndc
(Thanks to Adam C. Greenfield on the Cpanel.net forums)
to temporarily (or... really fix it for good) you could restart bind say.. every five minutes via cron.
-neil