#!/bin/bash # Quick fix script to add current user to ZFS sudoers for development # Usage: sudo ./fix-sudoers.sh set -e CURRENT_USER=$(whoami) SUDOERS_FILE="/etc/sudoers.d/atlas-zfs" echo "Adding $CURRENT_USER to ZFS sudoers for development..." # Check if sudoers file exists if [ ! -f "$SUDOERS_FILE" ]; then echo "Creating sudoers file..." cat > "$SUDOERS_FILE" <> "$SUDOERS_FILE" <