<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 31, 2013, at 4:39 PM, Richard Crane wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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:<div><br></div><div><blockquote type="cite"><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: started, version 2.59 cachesize 500</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP no-conntrack IDN</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq-dhcp[3543]: DHCP, IP range 172.20.2.1 -- 172.20.2.254, lease time 7d</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: using local addresses only for domain 20.172.in-arpa.addr</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: using local addresses only for domain haskins.lab</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: failed to read /etc/dnsmasq_resolv: Permission denied</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: no servers found in /etc/dnsmasq_resolv, will retry</font></div><div><font class="Apple-style-span">Jan 31 14:09:32 scully dnsmasq[3543]: failed to load names from /etc/dnsmasq_hosts: Permission denied</font></div></blockquote><br></div><div>I am using the default dnsmasq userid, but have tried using root, using another userid (modifying "root=" and "group="</div><div><div>appropriately in the .conf file) -- nothing helps.  System is opensuse 12.1, no ACLs; ls -l </div><div><br></div><div><br></div><blockquote type="cite"><div><font class="Apple-style-span"> # ls -ld /etc/dnsmasq*</font></div><div><font class="Apple-style-span">-rw-r--r-- 1 root root    842 Jan 17 10:00 /etc/dnsmasq-dhcp-static-hosts.conf</font></div><div><font class="Apple-style-span">-rw-r--r-- 1 root root     98 Jan 31 12:02 /etc/dnsmasq-foo</font></div><div><font class="Apple-style-span">-rw-r--r-- 1 root users 14832 Jan 31 14:06 /etc/dnsmasq.conf</font></div><div><font class="Apple-style-span">-rw-r--r-- 1 root root   3701 Jan  9 10:00 /etc/dnsmasq_hosts</font></div><div><font class="Apple-style-span">-rw-r--r-- 1 root root     98 Sep 13  2006 /etc/dnsmasq_resolv</font></div></blockquote><div><br></div>shows 644 for all the files. Running strace shows file open RO but a Permissed denied error. </div><div><br></div></div></blockquote><br></div><div><br></div><div>I solved my problem by upgrading dnsmasq, but I still don't understand how it could happen.  Has anyone ever run into something like this?</div><div><br></div><br><div>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Richard Crane</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">-------</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Haskins Laboratories / (203) 865-6163 X 275 /<span class="Apple-converted-space">  </span>FAX (203) 865-8963</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">300 George Street/New Haven, CT 06511</font></p>

</div>
<br></body></html>