6f2509
From 2c0a8c2df07ad186e19cc9bde31b407c83d9ff40 Mon Sep 17 00:00:00 2001
6f2509
From: Eduardo Otubo <otubo@redhat.com>
6f2509
Date: Thu, 23 Jan 2020 11:13:17 +0100
6f2509
Subject: [PATCH 1/5] Removing cloud-user from wheel
6f2509
6f2509
Message-id: <20200123111317.15542-1-otubo@redhat.com>
6f2509
Patchwork-id: 93442
6f2509
O-Subject: [RHEL-7.9/RHEL-8 cloud-init PATCH] Removing cloud-user from wheel
6f2509
Bugzilla: 1549638
6f2509
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
6f2509
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
6f2509
6f2509
Including cloud-user to both sudoers and wheel group makes the command
6f2509
`sudo -v' to ask for password. Besides the bogus behavior, it's
6f2509
unecessary to have the user on both. Removing the user from `wheel'
6f2509
group solves the issue
6f2509
6f2509
X-downstream-only: yes
6f2509
Resolves: rhbz#1549638
6f2509
Resolves: rhbz#1785648
6f2509
6f2509
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
6f2509
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
6f2509
---
6f2509
 rhel/cloud.cfg | 2 +-
6f2509
 1 file changed, 1 insertion(+), 1 deletion(-)
6f2509
6f2509
diff --git a/rhel/cloud.cfg b/rhel/cloud.cfg
6f2509
index f0db3c1..82e8bf6 100644
6f2509
--- a/rhel/cloud.cfg
6f2509
+++ b/rhel/cloud.cfg
6f2509
@@ -57,7 +57,7 @@ system_info:
6f2509
     name: cloud-user
6f2509
     lock_passwd: true
6f2509
     gecos: Cloud User
6f2509
-    groups: [wheel, adm, systemd-journal]
6f2509
+    groups: [adm, systemd-journal]
6f2509
     sudo: ["ALL=(ALL) NOPASSWD:ALL"]
6f2509
     shell: /bin/bash
6f2509
   distro: rhel
6f2509
-- 
6f2509
1.8.3.1
6f2509