0

after the plain installation of nftables (ubuntu server 22.04) the permissions of the /etc/nftables.conf file are set to 755 (-rwxr-xr-x). i cannot believe that it's necessary that anyone has read and execute rights. so:

what are the correct minimum rights for nftables?

chmod 644 /etc/nftables.conf [?]

i looked through the web and man pages, but couldn't find a trusted answer.

Pilot6
  • 92,041
Shaun.M
  • 21

1 Answers1

0

The /etc/nftables.conf has 755 permissions by default.

It is owned by the root user.

This means that only root user can write to this file. Everyone else can only read and execute it.

It is a text configuration file, so it is not executable. It doesn't make any practical difference how you set permissions 755 or 644.

But 644 looks more appropriate.

Pilot6
  • 92,041