From 5927f45a4ab2fc86d7acc51eaebad995f2141aea Mon Sep 17 00:00:00 2001 From: henrygd Date: Sat, 25 Oct 2025 11:56:26 -0400 Subject: [PATCH] install-agent.sh: add 'beszel' user to disk group for device access --- 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 999143e2..0ab728ad 100755 --- a/supplemental/scripts/install-agent.sh +++ b/supplemental/scripts/install-agent.sh @@ -571,6 +571,11 @@ else echo "Adding beszel to docker group" usermod -aG docker beszel fi + # Add the user to the disk group to allow access to disk devices if group disk exists + if getent group disk; then + echo "Adding beszel to disk group" + usermod -aG disk beszel + fi fi # Create the directory for the Beszel Agent