From 7081934473d95b93b618cf29aed7a49d7498fb19 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Thu, 18 Jan 2024 09:25:14 +0100 Subject: [PATCH] Promote all members of wheel to sudoers Install the sudo command, and let all members of the "wheel" group run any command as the superuser. This ensures that administrators have full access to the system, primarily for troubleshooting, diagnostics, and remote scripting purposes. --- board/common/rootfs/etc/sudoers.d/wheel | 1 + configs/aarch64_defconfig | 1 + configs/x86_64_defconfig | 1 + 3 files changed, 3 insertions(+) create mode 100644 board/common/rootfs/etc/sudoers.d/wheel diff --git a/board/common/rootfs/etc/sudoers.d/wheel b/board/common/rootfs/etc/sudoers.d/wheel new file mode 100644 index 00000000..bbad9889 --- /dev/null +++ b/board/common/rootfs/etc/sudoers.d/wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL:ALL) NOPASSWD: ALL diff --git a/configs/aarch64_defconfig b/configs/aarch64_defconfig index 40058503..6f8399cd 100644 --- a/configs/aarch64_defconfig +++ b/configs/aarch64_defconfig @@ -91,6 +91,7 @@ BR2_PACKAGE_ULOGD=y BR2_PACKAGE_BASH=y BR2_PACKAGE_BASH_COMPLETION=y BR2_PACKAGE_HTOP=y +BR2_PACKAGE_SUDO=y BR2_PACKAGE_IRQBALANCE=y BR2_PACKAGE_KMOD_TOOLS=y BR2_PACKAGE_PWGEN=y diff --git a/configs/x86_64_defconfig b/configs/x86_64_defconfig index 14b8efa6..02e64f06 100644 --- a/configs/x86_64_defconfig +++ b/configs/x86_64_defconfig @@ -86,6 +86,7 @@ BR2_PACKAGE_ULOGD=y BR2_PACKAGE_BASH=y BR2_PACKAGE_BASH_COMPLETION=y BR2_PACKAGE_HTOP=y +BR2_PACKAGE_SUDO=y BR2_PACKAGE_IRQBALANCE=y BR2_PACKAGE_KMOD_TOOLS=y BR2_PACKAGE_PWGEN=y