Skip to content

Instantly share code, notes, and snippets.

View SimFre's full-sized avatar

Simon Fredriksson SimFre

View GitHub Profile
@SimFre
SimFre / remotezfs.sh
Created September 17, 2025 12:09
Remote ZFS
#!/usr/bin/env bash
# This will allow the remote user to SSH to the machine
# and manage an isolated ZFS dataset.
REMOTEUSER=myremoteuser
useradd -s /usr/bin/rbash $REMOTEUSER
mkdir -p /home/$REMOTEUSER
cd /home/$REMOTEUSER