From 59eed073c3d1ec641c1c64a82c1abcd28ee91214 Mon Sep 17 00:00:00 2001 From: Santhi Prakash <38608178+santhiprakash@users.noreply.github.com> Date: Sun, 6 Sep 2026 21:04:03 +0530 Subject: [PATCH] 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 --- supplemental/scripts/install-agent.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/supplemental/scripts/install-agent.sh b/supplemental/scripts/install-agent.sh index 4ffd7a6f..2c6f5873 100755 --- a/supplemental/scripts/install-agent.sh +++ b/supplemental/scripts/install-agent.sh @@ -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