#dataset #zfs #encryption #pool #control #command #user

sam-zfs-unlocker

A simple library for controlling encrypted ZFS pool datasets

8 releases

0.1.7 Aug 31, 2024
0.1.6 Aug 20, 2024

#568 in Filesystem

Download history 153/week @ 2024-08-06 355/week @ 2024-08-13 166/week @ 2024-08-20 177/week @ 2024-08-27 15/week @ 2024-09-03

713 downloads per month

MIT license

30KB
602 lines

Sam-ZFS-unlocker

This is a simple library that has some functions to lock/unlock datasets in your machine. This isn't intended to be run or even compiled as root.

Usage with sudo

The way to use this is by creating a special user and granting them special sudo permissions to run the given commands. The functions that require visudo to be edited for the given user are specified in the documentation of every function. A subset of those are "mount", "unmount", "load-key" and "unload-key". More may be added.

Dependencies

~245–700KB
~16K SLoC