Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加只读挂载功能 #5721

Closed
mlkt opened this issue Dec 20, 2023 · 7 comments
Closed

添加只读挂载功能 #5721

mlkt opened this issue Dec 20, 2023 · 7 comments
Labels
enhancement New feature or request stale No activity for more than 30 days

Comments

@mlkt
Copy link
Contributor

mlkt commented Dec 20, 2023

Description of the feature / 需求描述

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

Suggested solution / 实现思路

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

@mlkt mlkt added the enhancement New feature or request label Dec 20, 2023
Copy link

welcome bot commented Dec 20, 2023

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

@IAALAI
Copy link

IAALAI commented Dec 22, 2023

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

@xinxinenjoy
Copy link

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

@IAALAI
Copy link

IAALAI commented Dec 31, 2023

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

Copy link

stale bot commented Feb 13, 2024

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 stale bot added the stale No activity for more than 30 days label Feb 13, 2024
Copy link

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
@github-actions github-actions bot mentioned this issue Jun 13, 2024
4 tasks
@github-actions github-actions bot mentioned this issue Jun 28, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

3 participants