delete /etc/dnsmasq.d/ 02-custom-settings.conf

Hi

I have Pi-hole running on a VM at my Qnap NAS

I have tried to fix the DNSMASQ_WARN Warning in dnsmasq core:
Maximum number of concurrent DNS queries reached (max: 150) by following the steps of the mentioned topic.

Unfortionatly i seam to have done some mistake and PIhole is not working anymore. I got following fault. DNSMASQ_CONFIG FTL failed to start due to cannot read /etc/dnsmasq.d/02-custom-settings.conf.save: Permission denied

I have tried to delete the file by moving it to the recycle bin. It tries to open a window but I can not see what it is telling (Speed is not so well f the VM).
I have tried to delete it via the terminal (rm /etc/dnsmasq.d/02-custom-settings.conf.save) but it does not find the path
Any Idea how i can solve this?

This file ends with .save which shows this was probably created by the text editor as an "auto-save" file when you were editing it.

What is the output of ls -la /etc/dnsmasq.d ?

As you can see, the file permissions are different than the other files: -rw-------

You can remove the file with:

sudo rm /etc/dnsmasq.d/02-custom-settings.conf.save

That is what I have tried also by myself it gives me following fault.
image

It only tells me that it is not possible to remove file or directory not found

I got it now.
i used cd to change directory to the /etc/dnsmasq.d folder
image
afterwards i tried to rm again but faild with same fault

i have tried to use sudo rm -rf but it told me that I do not have the rights for it what made me skeptical

i have checked about immutable Bit with lsattr and deleted the immutable bit with chattr -i
afterwards i was able to delete the file

Note that in the first two attempts you typed .safe instead of .save, so the file was not found. In the third attempt there was no sudo so you did not have enough privilege to delete it. In the final attempt you used sudo and the filename was correct and it successfully deleted.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.