View previous topic :: View next topic |
Author |
Message |
Lloydz n00b


Joined: 31 Aug 2019 Posts: 38 Location: Germany
|
Posted: Sat Aug 31, 2019 9:27 am Post subject: nftables man and permission |
|
|
Hello,
since a few days i'm using nftables tool "nft" for network firewall. if i
open the manual with: man nft it shows me a empty page:
Manual page nft(8) byte 0/0 (END) (press h for help or q to quit)
The file under "/usr/share/man/man.8" looks like:
-rw-r--r-- 1 root root 20K Aug 28 12:28 /usr/share/man/man8/nft.8.bz2
Why is my man page empty?
I'am not an expert with man, but if i look via bzless on that file, it seams good.
So why can't i use "man nft" to read the man page, ofther man pages works fine.
My second question is more interessting for developer or package maintainer:
If i execute "rc-service nftables save" or "/etc/init.d/nftable save" the first time,
i got a rule-save file with the following permission:
----rw-rw- 1 root root 1.9K Aug 30 12:06 /var/lib/nftables/rules-save
Only root-group an world RW-permission, root-user none, is this wanted?
I change the permission with chmod to 640. The script "/etc/init.d/nftables"
or "/usr/libexec/nftables/nftables.sh" do not change the permission, so i think
it comes from the installation first.
I do the "workaround" and after my first change, the permissions never changed by an other script,
so i can live with that. But should also fixed?
bye. |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Aug 31, 2019 5:12 pm Post subject: |
|
|
Something is very wrong there, the initscript should be creating that file with mode 0600, not 0066.
For the man page, does it work if you re-emerge nftables with PORTAGE_COMPRESS="" PORTAGE_COMPRESS_FLAGS="" set? Do other .bz2 pages have a problem? bzip2 support is optional on the man viewer, but it's usually on by default. |
|
Back to top |
|
 |
Lloydz n00b


Joined: 31 Aug 2019 Posts: 38 Location: Germany
|
Posted: Wed Sep 18, 2019 10:49 am Post subject: solution at bugzilla #691326 |
|
|
Hi,
now i close this case. Because the second error with file permission for
"/var/lib/nftables/rules-save" has also an Bugreport #691326
here on Gentoo Bugzilla which is
closed now.
Since a few days there exists a patch, which writes the file with the
correct file permission.
The first problem with the manual page of nft - i think it has to do
with my system, because it is running with mucl as glibc replacement.
As example, in my daily cron mail i saw a few errors like this:
Code: |
manconv: iconv_open ("UTF-8//IGNORE", "utf-8"): Invalid argument
manconv: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
manconv: iconv_open ("UTF-8//IGNORE", "us-ascii"): Invalid argument
|
I think it has to do with that and i will examine in this direction
for my self first.
At the moment i help my self with the man pages from the internet.
I think it has also nothing to do with the topic network and security.
many thanks!
good bye. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|