i've installed Unbound from source in another folder, set the unbound.conf and try
to start it.
But the start failed with "cannot open pidfile /test/unbound/unbound.pid :
Permission denied".
is it enough to:
% cd /test/unbound
% sudo chown -Rh unbound:unbound .
Then try to start it again?
FWIW all the systems I run that create pidfiles, either put them in
Hi folks,
i've installed Unbound from source in another folder, set the unbound.conf and try
to start it.
But the start failed with "cannot open pidfile /test/unbound/unbound.pid :
Permission denied".
is it enough to:
% cd /test/unbound
% sudo chown -Rh unbound:unbound .
Then try to start it again?
FWIW all the systems I run that create pidfiles, either put them in
/var/run
or
/tmp
Yes and likely SElinux would fail outside of those directories.
I using systemd, it would be better to use a type=simple without pidfile.
Unfortunately no. Like i wrote in my question, the installation folder is already owned by the user “test_unbound” wich also set in the config.
FWIW all the systems I run that create pidfiles, either put them in
/var/run
or
/tmp
If i use this directories the error turns to “Read-only file system”.
I already thought, that the permission-error is not a “real” permission thing, but a specific option in the service-file which is unlikely causing the restriction.
That also confirms by the fact that if i manually start with “sudo sbin/unbound -d -vvvv” the output is:
% cd /test/unbound
% sudo chown -Rh unbound:unbound .
Then try to start it again?
Unfortunately no. Like i wrote in my question, the installation folder is already
owned by the user "test_unbound" wich also set in the config.
FWIW all the systems I run that create pidfiles, either put them in
/var/run
or
/tmp
If i use this directories the error turns to "Read-only file system".
I already thought, that the permission-error is not a "real" permission thing, but
a specific option in the service-file which is unlikely causing the restriction.
That also confirms by the fact that if i manually start with "sudo sbin/unbound -d
-vvvv" the output is:
I'm going out on a limb here, as I'm running unbound on *BSD systems. But after you
encounter the failure here. What permissions does /test/unbound/ && /test/ have?
IOW does the unbound user own them? Is /test/unbound/unbound.pid owned by the
unbound user? The answer to these questions should help you narrow the systemd
setup. Last, but not least (I know this may sound stupid) the unbound user was
created, right? Has the necessary perms? Sorry. Just trying to cover all the
bases.