OpenWrt Forum Archive

Topic: dnsmasq cant load /etc/ethers Permission Denied.

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I under stand that dnsmasq goes to user nobody and group dip by default, however it is unable to load a few of its file permission denied.

Jan  1 00:00:24 (none) kern.err dnsmasq[639]: failed to load names from /etc/hosts: Permission denied
Jan  1 00:00:24 (none) kern.err dnsmasq[639]: failed to read /etc/ethers:Permission denied
Jan  1 00:00:24 (none) kern.warn dnsmasq[639]: failed to access /etc/resolv.conf: Permission denied


root@OpenWrt:/etc# ls -l ethers
-rw-r--r--    1 nobody   nogroup       100 Jan  1 00:09 ethers
-rw-r--r--    1 root     root          102 Jan  2  2000 hosts
-rw-r--r--    1 root     root           49 Jan  1 00:00 /tmp/resolv.conf

I do not see why it is unable to open these files, they are world readable.


root@OpenWrt:/etc# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.2M      2.8M    372.0k  89% /
none                      7.0M     16.0k      7.0M   0% /tmp

root@OpenWrt:/# free
              total         used         free       shared      buffers
  Mem:        14376         6832         7544            0            0
Swap:            0            0            0
Total:        14376         6832         7544


I dont think I am having any file system problems... Anyone know how to check?

Any help would be great.

******************Updated***********************



Well I found what might be causing this problem it is the removal of dropbear then the installation of openssh-client and openssh-server... I dont know why yet but if someone could help it would be great.

Well I decied that the filesystem was curupt, not sure how, and cant prove it. However I  tftped a fresh img then re-setup the defaults and everything works again.

Jan  1 00:00:24 (none) kern.err dnsmasq[630]: failed to load names from /etc/hosts: Permission denied

(Last edited by revslowmo on 13 Sep 2005, 01:44)

The discussion might have continued from here.