Starting name server BIND Unable to lock file /etc/nam.conf

  • 7011945
  • 13-Mar-2013
  • 13-Mar-2013

Environment

Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 2 (OES 2) Linux
novell-named

Situation

novell-named fails to start
unable to start novell-named

Attempting to start the novell-named daemon fails with:

Starting name server BIND Unable to lock file /etc/nam.conf. 
Permission denied

Resolution

Go into yast and modify the Novell AppArmor profile.

1.  yast2 -> novell apparmor -> Edit Profile
2.  Select "/opt/novell/named/bin/novell-named"
3.  Select "Add Entry" -> "File"
4.  Enter /etc/nam.conf in the field
5.  Select "read" and "lock" for the permissions tab
6.  Click ok / done




Cause

The named dameon needs to be able to read / lock the /etc/nam.conf. AppArmor prevents this unless you specify the right.