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