# File Lock

File Lock is an Unraid plugin that lets you browse shares, search by name, and apply or remove the immutable flag on individual files or recursively on folders directly from the webGUI without a terminal to prevent. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/6710/file-lock

## Description

File Lock is an Unraid plugin that lets you browse shares, search by name, and apply or remove the immutable flag on individual files or recursively on folders directly from the webGUI without a terminal to prevent accidental deletion or modification on XFS, BTRFS, and ZFS.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

42/100 (Fair), based on 3 of 4 factors.
- Maintained: 77 (last commit 51 days ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- Unraid: https://ca.unraid.net/apps/file-lock-1sdc3g2156ehmm?q=file.lock
- GitHub: https://github.com/matthewbolding/unraid-plugin-file-lock

## Common questions

### Does locking a folder also lock the files inside it?

Selecting a folder and locking or unlocking it applies the immutable flag to every file inside that folder recursively. Directories themselves cannot be made immutable.

### Why does the plugin resolve files to disk paths instead of using /mnt/user directly?

The webGUI shows fused /mnt/user paths, but the backend resolves each file to its physical disk or cache path before running chattr. The shfs FUSE layer that presents /mnt/user does not implement the ioctls needed by chattr and lsattr.

### Can I delete a file that is currently locked?

Unlock & Delete removes the immutable flag if it is set and then permanently deletes the selected file. It is disabled whenever a folder is selected, and the action is irreversible after the confirmation prompt.

### Does the search box search only the files shown in the current directory?

No. The search box finds files and folders by name anywhere under the current folder, not just the current listing.

### Can the browser see the whole array?

The browser is sandboxed to a configurable base directory and everything below it. You can change the base directory in the plugin settings.

---
Source: Our Local Host (https://ourlocalhost.com/app/6710/file-lock), the self-hosted and open-source app directory.
