[GH-ISSUE #676] read only rule fails to take effect #410

Open
opened 2026-04-08 16:52:41 +03:00 by zhus · 3 comments
Owner

Originally created by @ywtz1 on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/sigoden/dufs/issues/676

I want to make all files readable and writable except for a specific folder. When I use the following configuration, the ro rule fails to take effect, and all files become readable and writable:
@/:rw,/dir1:ro

the dir1 is created via a Windows hard link. mklink /d
Environment Information

  • Dufs version: 0.45
  • Browser/Webdav info:
  • OS info: Windows
  • Proxy server (if any): nginx
Originally created by @ywtz1 on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/sigoden/dufs/issues/676 I want to make all files readable and writable **except** for a specific folder. When I use the following configuration, the `ro` rule **fails to take effect**, and all files become readable and writable: `@/:rw,/dir1:ro` the dir1 is created via a **Windows hard link**. mklink /d **Environment Information** - Dufs version: 0.45 - Browser/Webdav info: - OS info: Windows - Proxy server (if any): nginx
Author
Owner

@ywtz1 commented on GitHub (Mar 6, 2026):

I found that it was mentioned in https://github.com/sigoden/dufs/pull/521 that higher perm auth path shadows lower one. At that time, I thought the problem with this approach was that it was impossible to set read and write permissions for all files except specific files and folders to read-only.

<!-- gh-comment-id:4009116303 --> @ywtz1 commented on GitHub (Mar 6, 2026): I found that it was mentioned in https://github.com/sigoden/dufs/pull/521 that **higher perm auth path shadows lower one**. At that time, I thought the problem with this approach was that it was impossible to set **read and write permissions for all files except specific files and folders to read-only**.
Author
Owner

@yuf19-2022 commented on GitHub (Mar 12, 2026):

I found that it was mentioned in #521 that higher perm auth path shadows lower one. At that time, I thought the problem with this approach was that it was impossible to set read and write permissions for all files except specific files and folders to read-only.

I also think the design of the approach that "higher perm auth path shadows lower one" is unreasonable.

<!-- gh-comment-id:4044422549 --> @yuf19-2022 commented on GitHub (Mar 12, 2026): > I found that it was mentioned in [#521](https://github.com/sigoden/dufs/pull/521) that **higher perm auth path shadows lower one**. At that time, I thought the problem with this approach was that it was impossible to set **read and write permissions for all files except specific files and folders to read-only**. I also think the design of the approach that "higher perm auth path shadows lower one" is unreasonable.
Author
Owner

@yuf19-2022 commented on GitHub (Mar 12, 2026):

I found that it was mentioned in #521 that higher perm auth path shadows lower one. At that time, I thought the problem with this approach was that it was impossible to set read and write permissions for all files except specific files and folders to read-only.

i replyto the author in https://github.com/sigoden/dufs/issues/519#issuecomment-3693899338 and https://github.com/sigoden/dufs/pull/521#issuecomment-3692344186 ,but unlucky,there is no reply from the author

<!-- gh-comment-id:4044428970 --> @yuf19-2022 commented on GitHub (Mar 12, 2026): > I found that it was mentioned in [#521](https://github.com/sigoden/dufs/pull/521) that **higher perm auth path shadows lower one**. At that time, I thought the problem with this approach was that it was impossible to set **read and write permissions for all files except specific files and folders to read-only**. i replyto the author in https://github.com/sigoden/dufs/issues/519#issuecomment-3693899338 and https://github.com/sigoden/dufs/pull/521#issuecomment-3692344186 ,but unlucky,there is no reply from the author
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#410