From ced003e71f292a13dacdd1a6d2f0903fe995ea0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Thu, 14 Dec 2023 08:59:11 +0100 Subject: [PATCH] Allow sudo for all instead of just members of the wheel group We already claim this in the README: > This being an image for development use, we have installed sudo and configured all users in the container to use it without providing a password. Previously we did this by making sure the typical users were in the wheel group. But with a recent update (probably to the underlying alpine image -- but I'm not sure) the process doesn't have knowledge of this unless we run Docker with the `--group-add wheel` option. We want to avoid that. So let's just implement what we actually claim in the documentation. This should also be better for the non-standard use case where someone runs the container using a "non-stanard" user. --- context/etc/sudoers.d/all | 1 + context/etc/sudoers.d/wheel | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 context/etc/sudoers.d/all delete mode 100644 context/etc/sudoers.d/wheel diff --git a/context/etc/sudoers.d/all b/context/etc/sudoers.d/all new file mode 100644 index 0000000..7186406 --- /dev/null +++ b/context/etc/sudoers.d/all @@ -0,0 +1 @@ +ALL ALL=(ALL:ALL) NOPASSWD: ALL diff --git a/context/etc/sudoers.d/wheel b/context/etc/sudoers.d/wheel deleted file mode 100644 index bbad988..0000000 --- a/context/etc/sudoers.d/wheel +++ /dev/null @@ -1 +0,0 @@ -%wheel ALL=(ALL:ALL) NOPASSWD: ALL