sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init a year ago
Clone
Blob Blame History Raw
From 84cf125e1704034ccc6c379aced2924f9d0d30e6 Mon Sep 17 00:00:00 2001
From: Eduardo Otubo <otubo@redhat.com>
Date: Thu, 23 Jan 2020 11:13:17 +0100
Subject: [PATCH] Removing cloud-user from wheel

RH-Author: Eduardo Otubo <otubo@redhat.com>
Message-id: <20200123111317.15542-1-otubo@redhat.com>
Patchwork-id: 93442
O-Subject: [RHEL-7.9/RHEL-8 cloud-init PATCH] Removing cloud-user from wheel
Bugzilla: 1785648
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>

BZ: 1549638
BRANCH: rhel7/master-18.5
UPSTREAM:
BREW: 25963032

BZ: 1785648
BRANCH: rhel8/master-18.5
UPSTREAM:
BREW: 25962773

Including cloud-user to both sudoers and wheel group makes the command
`sudo -v' to ask for password. Besides the bogus behavior, it's
unecessary to have the user on both. Removing the user from `wheel'
group solves the issue

X-downstream-only: yes
Resolves: rhbz#1549638
Resolves: rhbz#1785648

Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
---
 rhel/cloud.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rhel/cloud.cfg b/rhel/cloud.cfg
index f0db3c1..82e8bf6 100644
--- a/rhel/cloud.cfg
+++ b/rhel/cloud.cfg
@@ -57,7 +57,7 @@ system_info:
     name: cloud-user
     lock_passwd: true
     gecos: Cloud User
-    groups: [wheel, adm, systemd-journal]
+    groups: [adm, systemd-journal]
     sudo: ["ALL=(ALL) NOPASSWD:ALL"]
     shell: /bin/bash
   distro: rhel
-- 
1.8.3.1