From 749fc6a8b2e6da95abdc014a14df7c1b254e1016 Mon Sep 17 00:00:00 2001
From: Lukas Plevac <lukas@plevac.eu>
Date: Mon, 9 Dec 2024 10:51:08 +0100
Subject: [PATCH] Added maintanence user to wheel

---
 versions/master/airootfs/fast_install_stage2.sh | 2 +-
 versions/slave/airootfs/fast_install_stage2.sh  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/versions/master/airootfs/fast_install_stage2.sh b/versions/master/airootfs/fast_install_stage2.sh
index 28deba6..c0cc1b6 100644
--- a/versions/master/airootfs/fast_install_stage2.sh
+++ b/versions/master/airootfs/fast_install_stage2.sh
@@ -69,7 +69,7 @@ usermod -a -G wheel slurm
 echo "%sudo ALL=(ALL:ALL) ALL" >> /etc/sudoers
 echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
 
-useradd -m -G users,sudo -s /bin/bash maintenance
+useradd -m -G users,wheel -s /bin/bash maintenance
 ssh-keygen -t ed25519 -C "maintenance" -f /root/.ssh/maintenance -N ''
 
 mkdir /home/maintenance/.ssh
diff --git a/versions/slave/airootfs/fast_install_stage2.sh b/versions/slave/airootfs/fast_install_stage2.sh
index 6bdda21..45b9574 100644
--- a/versions/slave/airootfs/fast_install_stage2.sh
+++ b/versions/slave/airootfs/fast_install_stage2.sh
@@ -69,7 +69,7 @@ usermod -a -G wheel slurm
 echo "%sudo ALL=(ALL:ALL) ALL" >> /etc/sudoers
 echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
 
-useradd -m -G users,sudo -s /bin/bash maintenance
+useradd -m -G users,wheel -s /bin/bash maintenance
 
 mkdir /home/maintenance/.ssh