fix(install): add beszel to operator group on FreeBSD for SMART device access (#2286)

On FreeBSD the beszel agent needs to be a member of the operator group
to access SMART-capable devices via smartctl (e.g. /dev/nvme*,
/dev/xpt0*). The wheel group alone does not grant that access, so the
install script now adds the beszel user to operator when that group
exists, mirroring the Linux disk-group handling.

Fixes #1431

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Santhi Prakash
2026-09-06 11:34:03 -04:00
committed by GitHub
co-authored by Paperclip
parent 266a74bab8
commit 59eed073c3
+5
View File
@@ -812,6 +812,11 @@ elif is_freebsd; then
echo "Adding beszel to wheel group for self-updates"
pw group mod wheel -m beszel
fi
# Add the user to the operator group for device access (SMART, /dev/xpt0, /dev/nvme*)
if pw group show operator >/dev/null 2>&1; then
echo "Adding beszel to operator group for device access"
pw group mod operator -m beszel
fi
fi
else