Skip to content

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

@systemofapwne

Description

@systemofapwne

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:

  • When mounting via ntfs-3g with the options rw,user,exec,uid=1000,gid=1000,umask=0000,fmask=0000,dmask=0000, all files and folders are set correctly to rwxrwxrwx.
drwxrwxrwx 1 klaus klaus        4096  9. Mai 21:53  Server
drwxrwxrwx 1 klaus klaus           0  4. Apr 07:03  SpeechRecognition
drwxrwxrwx 1 klaus klaus        4096 27. Mai 23:52  Spiele
  • When mounting via ntfs3 with the options rw,user,exec,uid=1000,gid=1000,noacsrules,umask=0000,fmask=0000,dmask=0000, I see this:
dr-xr-xr-x 1 klaus klaus        4096  9. Mai 21:53  Server
drwxrwxrwx 1 klaus klaus           0  4. Apr 07:03  SpeechRecognition
dr-xr-xr-x 1 klaus klaus        4096 27. Mai 23:52  Spiele

Note, that not all folders are missing the write-flag.
Also note, that ntfs-3g with no mount options set at all still shows these folders to be accessible as rwxrwxrwx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions