From 9840388d7d23b8a0618e4b69430b7e2c6b011841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 23 Nov 2020 21:39:55 +0200 Subject: [PATCH] Allow sudo for wheel, otherwise you're locked out (#62) --- README.md | 1 + presets/user.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 84eb2a8..17a4285 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ set -eux useradd -m ${ALMA_USER} passwd ${ALMA_USER} usermod -G wheel -a ${ALMA_USER} +echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel """ environment_variables = ["ALMA_USER"] ``` diff --git a/presets/user.toml b/presets/user.toml index dfe0b30..80ce276 100644 --- a/presets/user.toml +++ b/presets/user.toml @@ -5,5 +5,6 @@ set -eux useradd -m ${ALMA_USER} passwd ${ALMA_USER} usermod -G wheel -a ${ALMA_USER} +echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel """ environment_variables = ["ALMA_USER"]