From fa581f9643eedc9e54cfc07e6b8171f6c1253292 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Thu, 25 Feb 2021 09:40:00 +0100 Subject: [PATCH] Make files for /etc/sudoers.d/ and arrange for them to be copied over --- dotfiles/sudoers.d/insults | 3 +++ dotfiles/sudoers.d/protonvpn | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 dotfiles/sudoers.d/insults create mode 100644 dotfiles/sudoers.d/protonvpn diff --git a/dotfiles/sudoers.d/insults b/dotfiles/sudoers.d/insults new file mode 100644 index 0000000..cffe5c1 --- /dev/null +++ b/dotfiles/sudoers.d/insults @@ -0,0 +1,3 @@ +## Replace the usual "Sorry, try again." with insults upon incorrect password. +Defaults insults + diff --git a/dotfiles/sudoers.d/protonvpn b/dotfiles/sudoers.d/protonvpn new file mode 100644 index 0000000..76e2201 --- /dev/null +++ b/dotfiles/sudoers.d/protonvpn @@ -0,0 +1,5 @@ +## Use "sudo protonvpn" without needing a password. +## This is necessary to boot this setup, because "sudo protonvpn" is invoqued +## in ~/.xinitrc before starting the WM. +$USER ALL=(root) NOPASSWD:/usr/bin/protonvpn +