luci-mod-system/startup: dnsmasq restart failed to load names from /tmp/hosts/dhcp.main_dns: Permission denied
See original GitHub issueDnsmasq no longer able to read dns files in /tmp/hosts/ after restart via the UI. All files are rw
by owner (root) only.
root@u1:/etc/config# ls -l /tmp/hosts/dhcp.main_dns
-rw------- 1 root root 151 Oct 30 23:53 /tmp/hosts/dhcp.main_dns
root@u1:/etc/config# logread -e dnsmasq.*dhcp.main_dns
Sat Oct 30 23:53:16 2021 daemon.err dnsmasq[11280]: failed to load names from /tmp/hosts/dhcp.main_dns: Permission denied
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
daemon.err dnsmasq[6363]: failed to load names from /tmp ...
In system.log I found this logs each time I (re)start dnsmasq ... failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission #7844.
Read more >dnsmasq and permission denied reading /etc/hosts
Therefore, when dnsmasq attempts to read the file it throws an error (dnsmasq.log) ... dnsmasq[1740]: failed to load names from /etc/hosts: Permission denied....
Read more >How do I start dnsmasq?
I have installed dnsmasq but I can't start it: $ dnsmasq dnsmasq: failed to create listening socket for 10.0.1.57: Permission denied $ sudo ......
Read more >Dnsmasq unable to access log file
I know this answer comes late, but I found the solution. Just remove the log file and restart dnsmasq rm /tmp/dnsmasq.log systemctl restart ......
Read more >ubuntu 15.10 - dnsmasq failed to restart
Restarting dnsmasq (via systemctl): dnsmasq.serviceJob for dnsmasq.service failed because the control process exited with error code.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please check if the patch below resolves both issues (wrong umask inherited from LuCI, missing HOSTFILE_DIR in ujail).
Should be fixed by https://github.com/openwrt/openwrt/commit/a2fcd3900c0c7c168c4d3c04da189e408860483d