bind9 not starting on Ubuntu 8.04

Using Plesk 8.6 on an Ubuntu 8.04 server ran okay until it became apparent that named wasn’t starting.

The error looked like:

[ 1343.483062] audit(1249551059.618:28): type=1503 operation=”inode_permission” requested_mask=”::r” denied_mask=”::r” name=”/var/named/run-root/etc/localtime” pid=20377 profile=”/usr/sbin/named” namespace=”default”

The following URL helped:

I updated the /etc/apparmor.d/usr.sbin.named file and included: /var/named/run-root/** rw,

Then, restarted:

/etc/init.d/apparmor reload
/etc/init.d/bind9 start

And it was all good.

IIS6 and passive mode FTP

Make sure that IIS is setup to allow the meta base to be edited whilst running and then run:

cd Inetpub\AdminScripts
adsutil.vbs set /MSFTPSVC/PassivePortRange “5500-5520”
iisreset

Then you need to open the ports in the firewall.  If using the inbuilt firewall you can add the manually like:

C:\Inetpub\AdminScripts>NETSH FIREWALL ADD PORTOPENING TCP 5500 PassFTP
Ok.

C:\Inetpub\AdminScripts>NETSH FIREWALL ADD PORTOPENING TCP 5501 PassFTP
Ok.

etc.