Red Hat Bugzilla – Bug 982781
/var/lib/unbound is unowned and has wrong user/group
Last modified: 2013-07-10 10:47:26 EDT
Description of problem:
Saw this in a Rawhide update:
 libunbound[21588:0] error: could not open autotrust file for writing, /var/lib/unbound/root.key.21588-0: Permission denied
# ls -al /var/lib/unbound
drwxr-xr-x. 2 root root 4096 Apr 22 16:17 .
drwxr-xr-x. 54 root root 4096 Jul 3 14:48 ..
-rw-r--r--. 1 unbound unbound 758 Apr 22 16:17 root.key
So the unbound user can't write to that directory. Who owns it anyway?
# rpm -qf /var/lib/unbound
file /var/lib/unbound is not owned by any package
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run the unbound-libs %post script
An error message similar to the one above.
/var/lib/unbound is owned by unbound-libs package.
$ rpm -qlp unbound-libs-1.4.20-15.fc20.x86_64.rpm
Please try to reinstall of remove/install unbound. I think that your issue is
probably caused by some remains of older package/system (I can see Apr 22 there).
Sure enough, reinstalling unbound-libs made the problem go away. Thanks, Tomas!
(In reply to Jerry James from comment #2)
> Sure enough, reinstalling unbound-libs made the problem go away. Thanks,
I'm glad to hear that. You're welcome.