9001 / 9001/copyparty

Permission Management with Immutable Flags (+i)

未关闭
#217 0 条评论 0 个 reaction 已指派 1 人 已被 @9001 认领 在 GitHub 查看
enhancement
主要语言
Python
星标
46.6k
派生
1.9k
平均合并
10 天 16 小时
30 天内合并 PR
5

描述

Reason:

A while ago, I encountered an incident where a misconfigured Docker container inadvertently overwrote a large folder of important files on my Unraid server. After researching ways to prevent such accidents, particularly to protect against accidental deletions and ransomware attacks, I concluded that the simplest and most effective solution was to apply immutable flags (+i) to certain types of files, such as media, pictures, and other files that should not be modified or deleted.

To implement this, I created a script that applies the immutable flag to my Unraid shares. However, due to the complex file structure of Unraid and how it handles multiple physical paths across different disks, the script ended up being a bit more complicated than I initially anticipated. That said, after some testing, it seems to work well. While I’m not an expert in this field, I’m open to any improvements you may want to make, and I’d be grateful for any feedback if there are areas where I may have gone wrong.

Solution I would like:

It would be fantastic to see similar functionality integrated into your excellent file server program. While I trust you’ll implement it in the best way possible, it would be especially beneficial to have support for all major NAS systems and operating systems.

A proper GUI to manage these features would also be a huge improvement for less technical users, making it much easier to manage permissions and immutable flags effectively.

I’ve attached the script I created for Unraid shares in this request. Feel free to modify or use it as you see fit. If you end up incorporating it, a small credit for its use would be appreciated, though it’s certainly not mandatory.

Thank you for creating such an incredible piece of software! I truly appreciate all the hard work that has gone into it. Best of luck with further development, and greetings from a fellow Norwegian!

[UnraidPermissionManager.txt](https://github.com/user-attachments/files/21456788/UnraidPermissionManager.txt)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。