[Dnsmasq-discuss] dnsmasq can't read some of the config files
Richard Crane
richard.crane at haskins.yale.edu
Thu Jan 31 21:39:16 GMT 2013
I am setting up a test environment with an instance of dnsmasq 2.59 running. I copied over my config files from my production server. The dnsmasq.conf file is read, but my customized resolver and hosts files are not:
> Jan 31 14:09:32 scully dnsmasq[3543]: started, version 2.59 cachesize 500
> Jan 31 14:09:32 scully dnsmasq[3543]: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP no-conntrack IDN
> Jan 31 14:09:32 scully dnsmasq-dhcp[3543]: DHCP, IP range 172.20.2.1 -- 172.20.2.254, lease time 7d
> Jan 31 14:09:32 scully dnsmasq[3543]: using local addresses only for domain 20.172.in-arpa.addr
> Jan 31 14:09:32 scully dnsmasq[3543]: using local addresses only for domain haskins.lab
> Jan 31 14:09:32 scully dnsmasq[3543]: failed to read /etc/dnsmasq_resolv: Permission denied
> Jan 31 14:09:32 scully dnsmasq[3543]: no servers found in /etc/dnsmasq_resolv, will retry
> Jan 31 14:09:32 scully dnsmasq[3543]: failed to load names from /etc/dnsmasq_hosts: Permission denied
I am using the default dnsmasq userid, but have tried using root, using another userid (modifying "root=" and "group="
appropriately in the .conf file) -- nothing helps. System is opensuse 12.1, no ACLs; ls -l
> # ls -ld /etc/dnsmasq*
> -rw-r--r-- 1 root root 842 Jan 17 10:00 /etc/dnsmasq-dhcp-static-hosts.conf
> -rw-r--r-- 1 root root 98 Jan 31 12:02 /etc/dnsmasq-foo
> -rw-r--r-- 1 root users 14832 Jan 31 14:06 /etc/dnsmasq.conf
> -rw-r--r-- 1 root root 3701 Jan 9 10:00 /etc/dnsmasq_hosts
> -rw-r--r-- 1 root root 98 Sep 13 2006 /etc/dnsmasq_resolv
shows 644 for all the files. Running strace shows file open RO but a Permissed denied error.
I'm at my wit's end -- can anybody suggest any thing else to check?
Thanks,
Richard Crane
-------
Haskins Laboratories / (203) 865-6163 X 275 / FAX (203) 865-8963
300 George Street/New Haven, CT 06511
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130131/b362ad9b/attachment.html>
More information about the Dnsmasq-discuss
mailing list