Description
fsprotect
fsprotect is a neat tool made up of various scripts that help protect your filesystems, especially if you're using Debian systems. It’s designed to keep everything safe and sound on public computers, like the ones you find in libraries or labs.
Why Use fsprotect?
This software works by using AUFS (Another Union File System) and some special initramfs tricks to guard your root filesystem. Plus, it has an easy-to-follow init script that kicks in to protect other filesystems right from the get-go!
Benefits of fsprotect
- Your filesystems stay protected, and nothing gets written directly to the disk.
- Protected filesystems mount as read-only. This is great because it means they won’t get messed up even if the computer shuts down unexpectedly.
- It’s super user-friendly! Just add an "fsprotect" parameter to your kernel for the root filesystem and list any other filesystems you want to protect in /etc/default/fsprotect.
- In some cases, it can actually speed up filesystem access!
Drawbacks of fsprotect
- You can only make changes up to a limit you set (in bytes).
- Adequate swap space is a must since tmpfs (temporary filesystem) is heavily utilized.
How Does fsprotect Work?
The magic happens when fsprotect uses AUFS to blend two filesystems into one. Essentially, it takes an existing filesystem and combines it with a tmpfs, which means all changes are stored in memory instead of written directly to disk.
The Protection Steps
If you want to protect something like /test, here's how it goes down:
- Create a directory called /fsprotect, and inside that, make three more: /fsprotect/test/orig, /fsprotect/test/tmp, and /fsprotect/test/aufs.
- Mount tmpfs: mount -t tmpfs -o size=XXXX none /fsprotect/test/tmp.
- Bind mount: mount -o bind /test /fsprotect/test/orig.
- Create the aufs layer: mount -t aufs -o dirs=/fsprotect/test/tmp=rw:/fsprotect/test/orig=ro none /fsprotect/test/aufs.
- Unmount /test: umount /test.
- Add aufs back on: mount -o bind /fsprotect/test/aufs /test.
- You can unmount again: umount /fsprotect/test/aufs.
- The last step is remounting read-only: mount -o remount,ro /fsprotect/test/orig.
This process protects not just non-root filesystems but also does a special job on root ones since they sit underneath everything else. For this reason, fsprotect uses an initramfs script that runs early during boot-up. It swaps out the existing filesystem with an aufs before moving
User Reviews for fsprotect FOR LINUX 7
-
fsprotect FOR LINUX is a powerful tool for protecting filesystems on Debian systems. Ideal for public computers in libraries and labs.
-
Fsprotect is a game changer for managing public computers! Easy setup and rock-solid protection.
-
Absolutely love fsprotect! It keeps my system safe and stable without any hassle. Highly recommend it!
-
Fsprotect has made my life so much easier as an admin. No more worries about filesystem changes!
-
This app is fantastic! Simple to use and provides excellent filesystem protection. A must-have for labs!
-
I can't believe how well fsprotect works! It protects systems perfectly, making my job stress-free.
-
5 stars for fsprotect! It's incredibly effective and straightforward to implement on Debian systems.