Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559118 - net-dns/bind-9.10.2_p3: couldn't mkdir '/var/run/named': Permission denied
Summary: net-dns/bind-9.10.2_p3: couldn't mkdir '/var/run/named': Permission denied
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-29 19:00 UTC by Alexey Sychev
Modified: 2015-10-04 08:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Sychev 2015-08-29 19:00:38 UTC
named can not create /var/run/named directory at start because of permissions problem

Reproducible: Always




journalctl -b -u named:

Aug 29 21:29:33 gentoo named[581]: couldn't mkdir '/var/run/named': Permission denied
Aug 29 21:29:33 gentoo named[581]: generating session key for dynamic DNS
Aug 29 21:29:33 gentoo named[581]: couldn't mkdir '/var/run/named': Permission denied
Aug 29 21:29:33 gentoo named[581]: could not create /var/run/named/session.key
Aug 29 21:29:33 gentoo named[581]: failed to generate session key for dynamic DNS: permission denied

If I create /var/run/named by hand - no errors in log:

gentoo ~ # mkdir /var/run/named
gentoo ~ # chown named /var/run/named
gentoo ~ # systemctl start named
gentoo ~ # ls -la /var/run/named
total 8
drwxr-xr-x  2 named root   80 Aug 29 21:58 .
drwxr-xr-x 15 root  root  480 Aug 29 21:58 ..
-rw-r--r--  1 named named   4 Aug 29 21:58 named.pid
-rw-------  1 named named 102 Aug 29 21:58 session.key
Comment 1 Alexey Sychev 2015-08-29 19:47:48 UTC
emerge --info bind: http://pastebin.ca/3137408
Comment 2 Alexey Sychev 2015-10-03 22:59:54 UTC
No fix?
Comment 3 Pacho Ramos gentoo-dev 2015-10-04 08:29:31 UTC
[master 7f2d82c] net-dns/bind: Install missing tmpfiles.d file (#559118 by Alexey Sychev)
 2 files changed, 409 insertions(+)
 create mode 100644 net-dns/bind/bind-9.10.2_p4-r1.ebuild
 create mode 100644 net-dns/bind/files/named.conf