[GH-ISSUE #499] Support ! operator when authorizing path #282

Closed
opened 2026-04-08 16:51:41 +03:00 by zhus · 2 comments
Owner

Originally created by @peterroe on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/499

Specific Demand

  • admin: can read and write all file
  • user1: can read all file
  • default: can't read /privete
docker run -v `pwd`:/data --detach sigoden/dufs /data -A  -a admin:admin@/:rw -a user1:user1@/:ro -a 
@/ro,!/private
Originally created by @peterroe on GitHub (Dec 13, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/499 ## Specific Demand * admin: can read and write all file * user1: can read all file * default: can't read /privete ```bash docker run -v `pwd`:/data --detach sigoden/dufs /data -A -a admin:admin@/:rw -a user1:user1@/:ro -a @/ro,!/private ```
zhus closed this issue 2026-04-08 16:51:41 +03:00
Author
Owner

@sigoden commented on GitHub (Dec 13, 2024):

We do not support this feature, as this would make permissions extremely complex.

Design paths and permissions carefully to avoid the need for this feature.

Tip: You can use symlinks to simplify the design.

<!-- gh-comment-id:2541548860 --> @sigoden commented on GitHub (Dec 13, 2024): We do not support this feature, as this would make permissions extremely complex. Design paths and permissions carefully to avoid the need for this feature. > Tip: You can use symlinks to simplify the design.
Author
Owner

@peterroe commented on GitHub (Dec 13, 2024):

You are right, maybe a better way is to create a new /public directory specifically for making the directory readable by anyone.

<!-- gh-comment-id:2541560342 --> @peterroe commented on GitHub (Dec 13, 2024): You are right, maybe a better way is to create a new `/public` directory specifically for making the directory readable by anyone.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#282