From 84cf125e1704034ccc6c379aced2924f9d0d30e6 Mon Sep 17 00:00:00 2001 From: Eduardo Otubo Date: Thu, 23 Jan 2020 11:13:17 +0100 Subject: [PATCH] Removing cloud-user from wheel RH-Author: Eduardo Otubo 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 RH-Acked-by: Vitaly Kuznetsov 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 Signed-off-by: Miroslav Rezanina --- 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