[Dnsmasq-discuss] Permission denied on logfile

Johannes Stezenbach js at sig21.net
Tue Sep 21 19:54:13 UTC 2021


a minor issue I noticed while debugging:

I added this to the dnsmasq command line:
  --log-queries=extra --log-debug --log-facility=/tmp/dnsmasq.log
(actually set in DNSMASQ_OPTS in /etc/default/dnsmasq in Debian)

This works the first time, but fails after dnsmasq is restarted:
  dnsmasq: cannot open log /tmp/dnsmasq.log: Permission denied

$ ls -l /tmp/dnsmasq.log
-rw-r----- 1 dnsmasq root 515 Sep 20 21:50 /tmp/dnsmasq.log

Best Regards,

More information about the Dnsmasq-discuss mailing list