[GH-ISSUE #709] 支持不同用户设置不同的 serve-path #8815

Closed
opened 2026-06-03 00:39:38 +03:00 by zhus · 2 comments
Owner

Originally created by @EdenHell on GitHub (May 20, 2026).
Original GitHub issue: https://github.com/sigoden/dufs/issues/709

Specific Demand

举例来说,所有用户默认使用全局 serve-path,比如 /data。
但可以针对个别用户使用不同的 serve-path,比如 userA 使用 /data/videos
这跟 hidden 参数是不一样的效果。比如为某个用户分享非常深的路径,他是看不到父目录名的。

Implement Suggestion

需要修改 -a 参数,下面只是举例。

-a child:child:/data/videos/anime@/    -a friend:friend:/data/videos@/    -a admin:admin:/data@/
Originally created by @EdenHell on GitHub (May 20, 2026). Original GitHub issue: https://github.com/sigoden/dufs/issues/709 ## Specific Demand 举例来说,所有用户默认使用全局 serve-path,比如 /data。 但可以针对个别用户使用不同的 serve-path,比如 userA 使用 /data/videos 这跟 hidden 参数是不一样的效果。比如为某个用户分享非常深的路径,他是看不到父目录名的。 ## Implement Suggestion 需要修改 -a 参数,下面只是举例。 ``` -a child:child:/data/videos/anime@/ -a friend:friend:/data/videos@/ -a admin:admin:/data@/ ```
zhus closed this issue 2026-06-03 00:39:38 +03:00
Author
Owner

@sigoden commented on GitHub (May 20, 2026):

We will not support this feature.

Your problem should be solved by properly designing the se directory structure and setup auths.

<!-- gh-comment-id:4494191403 --> @sigoden commented on GitHub (May 20, 2026): We will not support this feature. Your problem should be solved by properly designing the se directory structure and setup auths.
Author
Owner

@EdenHell commented on GitHub (May 20, 2026):

We will not support this feature.

Your problem should be solved by properly designing the se directory structure and setup auths.

那很可惜了。修改已有的目录结构无疑是个比较重的操作,不够灵活。同类软件也有这个功能。
@sigoden

<!-- gh-comment-id:4494301857 --> @EdenHell commented on GitHub (May 20, 2026): > We will not support this feature. > > Your problem should be solved by properly designing the se directory structure and setup auths. 那很可惜了。修改已有的目录结构无疑是个比较重的操作,不够灵活。同类软件也有这个功能。 @sigoden
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#8815