Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Failed to work with NFS4ACL's group rules #25

Open
ArcticLampyrid opened this issue Jan 6, 2024 · 3 comments
Open

Failed to work with NFS4ACL's group rules #25

ArcticLampyrid opened this issue Jan 6, 2024 · 3 comments

Comments

@ArcticLampyrid
Copy link

read_dir Forbidden if the user isn't its owner. (with setuid=true). It's strange.
I'm using TrueNAS-SCALE-22.12.3.3, the acl of my folder is:

  • root: full control
  • group Foo: read-only

And the user Test is in the group Foo.

But it showed that "read_dir Forbidden" unless I changed the owner of my folder to user Test.

@ArcticLampyrid
Copy link
Author

I'm using nfs4acl

@ArcticLampyrid
Copy link
Author

It seems that when we set User Test in ACL directly, it works properly. But when using Group, it fails.

Note: I've logged in with SSH via the user and checks that I can access the folder with ACL rules properly.

@ArcticLampyrid ArcticLampyrid changed the title read_dir Forbidden if the user isn't its owner Failed to work with NFS4ACL's group rules Jan 7, 2024
@ArcticLampyrid
Copy link
Author

groups_vec.extend(groups.iter().map(|&g| g as u32).filter(|&g| g != user.gid));

After removing the filter, it works fine.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant