Environment
Novell Open Enterprise Server 2015 (OES 2015) Linux Support Pack 1
Novell Open Enterprise Server 2015 (OES 2015) Linux
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 3
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 2
Situation
DHCP leases file does not get updated
Error: "dhcpd: Can't backup lease database /var/lib/dhcp/db/dhcpd.leases to /var/lib/dhcp/db/dhcpd.leases~: Operation not permitted"
dhpcd creates dhpcd.lease file with ownership of root:root
Resolution
Option 1 - Update the dhpcd apparmor profile to include chown and fowner
-
Modify /etc/apparmor.d/usr.sbin.dhcpd and add these lines to the bottom of the capability section:
-
capability chown,
-
capability fowner,
-
Restart apparmor with "rcapparmor restart"
Option 2 - Disable apparmor
-
Stop apparmor with "rcapparmor stop"
-
Prevent apparmor from loading on boot with "chkconfig boot.apparmor off"
Cause
The apparmor profile for dhcpd does not allow chmod by default.