麻烦各位大佬将admin初始带上webdav管理的权限
Please confirm the following
-
[x] I have read and agree to AGPL-3.0 Section 15. The program is provided "as is" without any warranties; you bear all risks of using it.
-
[x] I have read and agree to AGPL-3.0 Section 16. The copyright holders and distributors are not liable for any damages resulting from the use or inability to use the program.
-
[x] I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.
-
[x] I have read the OpenList documentation.
-
[x] I confirm there are no duplicate issues or discussions.
-
[x] I believe this issue must be handled by
OpenListand not by a third party. -
[x] I confirm this feature has not been implemented yet.
-
[x] I confirm this feature is reasonable and has general demand, not just my personal need.
Feature Description
目前,初始的时候,admin竟然没有管理webdav的权限! 这…… 这个分支刚切出来的时候就在用,那时候用的rockylinux,一直没有问题。直到…… 昨天在飞牛上折腾了一天,我可怜的周末。飞牛社区、github、各种文档、deepseek、chatgpt翻了个遍,愣是没找到解决办法,一直以为是系统权限问题! 排查linux用户、linux文件、ACL权限:容器内部挂载卷文件可写、web端可写,就是webdav不行,从4.0.0一路安装到最新的beta版本,从docker到脚本到systemd安装试了个遍,客户端winscp/rclone/raidrive统统试了一遍,不是403就是写入被丢弃! 最终……不会吧……不会吧……进入用户管理,admin默认竟然没有webdav的管理权限!
双眼一黑
Suggested Solution
麻烦各位大佬将admin初始带上webdav管理的权限,以便让后来者不至于踩坑呐!
Additional Information
感谢您联系OpenList。我们会尽快回复您。 Thanks for contacting OpenList. We will reply to you as soon as possible.
就算为了安全考虑初始不给admin webdav管理权限,着重提示一下也好
https://doc.oplist.org/guide/advanced/webdav#%E6%9D%83%E9%99%90%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E
https://github.com/OpenListTeam/OpenList/blob/84ed487950994f9ee0b48f3d344dd2109b3adefd/internal/bootstrap/data/user.go#L36
项目还是 AList 的时候 admin 的 WebDAV 权限就已经默认取消了,还是后来才把 WebDAV 读取默认打开加回来的,文档里也明确强调了使用 WebDAV 需要正确配置用户权限,并不很理解你为什么会这么惊讶。