Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3090 - dnsmasq: daemon.err dnsmasq[6363]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission #7844

Open
openwrt-bot opened this issue May 11, 2020 · 3 comments
Labels
core packages flyspray release/19.07

Comments

@openwrt-bot
Copy link

openwrt-bot commented May 11, 2020

pduveau:

Router model : Netgear WNDR3700v1

I upgraded to 19.0.7 yesterday. Since I have the follow issue :
all static leases can't be resolved (25 hosts).

In system.log I found this logs each time I (re)start dnsmasq :
Mon May 11 05:47:28 2020 daemon.info dnsmasq[6363]: read /etc/hosts - 4 addresses
Mon May 11 05:47:28 2020 daemon.err dnsmasq[6363]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission denied
Mon May 11 05:47:28 2020 daemon.info dnsmasq-dhcp[6363]: read /etc/ethers - 0 addresses

So I patched the init.d/dnsmasq adding this line :
chmod og+r $HOSTFILE

after the line :
mv -f $HOSTFILE_TMP $HOSTFILE
in function dnsmasq_start

This patch is operational with those logs :
Mon May 11 05:51:57 2020 daemon.info dnsmasq[6613]: read /etc/hosts - 4 addresses
Mon May 11 05:51:57 2020 daemon.info dnsmasq[6613]: read /tmp/hosts/dhcp.cfg01411c - 25 addresses
Mon May 11 05:51:57 2020 daemon.info dnsmasq-dhcp[6613]: read /etc/ethers - 0 addresses

Best regards.
Philippe

@openwrt-bot
Copy link
Author

openwrt-bot commented Sep 1, 2020

h4de5:

Had the very same problem, same error message about not beeing able to load dhcp.cfg01411c. described hotfix worked.

@openwrt-bot
Copy link
Author

openwrt-bot commented Jan 6, 2021

prwood:

Confirmed that I am having this issue as well on OpenWrt 19.07.5 r11257-5090152ae3. The described hotfix worked for me as well.

@openwrt-bot
Copy link
Author

openwrt-bot commented Feb 28, 2021

pgaufillet:

Confirmed also in master (r15225), but on specific cases only:

  • Running manually /etc/init.d/dnsmasq start/restart creates /tmp/host/dhcp.cfg01411c with 644 root:root access rights.
  • Running manually /etc/init.d/network start/restart creates /tmp/host/dhcp.cfg01411c with 600 root:root access rights.

@aparcar aparcar added release/19.07 core packages labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages flyspray release/19.07
Projects
None yet
Development

No branches or pull requests

2 participants