Fix sudo access permission

This commit is contained in:
David Heinemeier Hansson 2025-08-25 10:57:29 +02:00
parent 4f0dfcc865
commit fdaa126aee

View File

@ -6,8 +6,9 @@ touch ~/.local/state/omarchy/first-run.mode
# Setup sudo-less access for first-run # Setup sudo-less access for first-run
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw $USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker $USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
$USER ALL=(ALL) NOPASSWD: /bin/rm -f /etc/sudoers.d/first-run $USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP
EOF EOF
sudo chmod 440 /etc/sudoers.d/first-run sudo chmod 440 /etc/sudoers.d/first-run