diff --git a/install.sh b/install.sh index 3093362..7d3b15d 100755 --- a/install.sh +++ b/install.sh @@ -176,6 +176,22 @@ create_user() { else echo -e "${YELLOW}User $SERVICE_USER already exists${NC}" fi + + # Add user to disk group for block device access (required for ZFS) + if getent group disk > /dev/null 2>&1; then + usermod -a -G disk "$SERVICE_USER" + echo -e "${GREEN}Added $SERVICE_USER to disk group${NC}" + fi + + # Create sudoers configuration for ZFS commands + echo -e "${GREEN}Configuring sudo for ZFS operations...${NC}" + cat > /etc/sudoers.d/atlas-zfs <