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