How do I edit /etc/pihole/pihole-FTL.conf?

Please follow the below template, it will help us to help you!

Expected Behaviour:

Would like to edit /etc/pihole/pihole-FTL.conf to add MAXDBDAYS.

Actual Behaviour:

I've tried to use vi to edit but it won't write the file.

Sorry for newbie question, but what steps do I need to do to edit this file? The file already exists, but I need to add the MAXDBDAYS=0 line. I don't see any way to do this from the user interface so I assume I need to do it from the command-line interface.

Thanks!

Are you using sudo?

sudo nano if you're new(ish). vi is not beginner friendly.

Bingo! sudo was the missing ingredient.

I've used vi and vi-like editors before. I'm no longer proficient, but I can limp through it. sudo nano is a good tip for the future!

Thanks!

1 Like

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