Permission Management with Immutable Flags (+i)
- Lenguaje dominante
- Python
- Estrellas
- 46.6k
- Forks
- 1.9k
- Merge medio
- 10 d 16 h
- PR fusionados (30 d)
- 5
Descripción
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)
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.