alist icon indicating copy to clipboard operation
alist copied to clipboard

添加只读挂载功能

Open mlkt opened this issue 1 year ago • 6 comments

Description of the feature / 需求描述

很多时候只是需要读取文件,并不需要修改文件,允许只读挂载可以防止意外修改或删除文件,同时增加安全性。虽然读写权限可以分用户指定,但增加只读挂载显然更方便,而且很多情况是管理员也只是想读取文件而已。

Suggested solution / 实现思路

配置存储时增加一个选项勾选是否只读,对文件进行修改/删除/移动/改名等操作时检测当前存储是否为只读挂载,如果是则禁止修改。

mlkt avatar Dec 20 '23 22:12 mlkt

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Dec 20 '23 22:12 welcome[bot]

See

  1. 50% #3910
  2. 50% #2968
  3. 50% #2967

github-actions[bot] avatar Dec 20 '23 22:12 github-actions[bot]

在元信息里可以实现类似的权限控制吧

IAALAI avatar Dec 22 '23 20:12 IAALAI

只读的话单独添加个用户,把权限调一下不是也可以?

xinxinenjoy avatar Dec 24 '23 07:12 xinxinenjoy

是的,这样应该也能实现你的需求

IAALAI avatar Dec 31 '23 12:12 IAALAI

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 13 '24 14:02 stale[bot]

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

github-actions[bot] avatar Feb 22 '24 00:02 github-actions[bot]