rmnscnce / ntfs3

ntfs3 Linux kernel module by Paragon Software
GNU General Public License v2.0
62 stars 13 forks source link

Access rights to files/folders (randomly?) return incorrect value, no matter if "no_acs_rules", usmask, fmask/dmask is set #5

Open systemofapwne opened 3 years ago

systemofapwne commented 3 years ago

When specifically mounting an NTFS drive with noacsrules, one can indeed write to files and folders, no matter what their respective NTFS permissions are. However, when doing an ls, some folders and files return incorrect permissions from time to time like r-xr-xr-x. This becomes problematic, whenever a program stat that directory/file and sees, that there is no w flag so it denies write access to it (even though it could according to noacsrules). Take e.g. a file manager like Dolphin: "right click/Create" is grayed out.

I expected permission masks to be the problem, but settings umask=0000 (same for f/dmask) do not fix the problem.

As a comparison between ntfs3 and ntfs-3g:

System Information OS: Manjaro Kernel: 5.10.59-1-MANJARO (LTS) ntfs3 driver: https://aur.archlinux.org/packages/ntfs3-dkms-git/

systemofapwne commented 3 years ago

I even think, that there is a general problem with permissions for this driver. I just booted up my Windows system to check the permissions. They are all equal for the shown folders, as you can see on this screenshot.

ntfs3_permissions_windows

However, ntfs3 reports them incorrectly as stated in the initial bugreport.

abarton5 commented 3 years ago

I confirm I had this problem when mounting my windows partition.

systemofapwne commented 3 years ago

Hi. This bug is not yet fixed. I tested this behaviour for different kernels (5.10, 5.14) and several configurations (noacl, noacsrules). On top of it, this repo might be the wrong location to ask for awareness. The official "repo" of the linux kernel including the changes of paragon (maintained by paragaon) can be found here https://github.com/Paragon-Software-Group/linux-ntfs3 However, you can't report bugs there. I guess, discussion about the development happens via the kernel mailing list. But I'm unsure about how to approach it.

systemofapwne commented 1 year ago

Bug still persist with kernel 6.1. Even though ntfs3 is way superious to ntfs-3g, it stays unusable for me with the permissions not reflecting how they should be set. Further more, the owner of some folders seem to stay "root" rather than the uid/gid that is set via mount options