canonical / canonical/cloud-init
feature request: group sudo
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
This bug was originally filed in Launchpad as [LP: #1980244](https://bugs.launchpad.net/cloud-init/+bug/1980244)
Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2022-06-29T14:23:20.476906+00:00
date_fix_committed = None
date_fix_released = None
id = 1980244
importance = wishlist
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1980244
milestone = None
owner = prestontaylor
owner_name = Preston Taylor
private = False
status = triaged
submitter = prestontaylor
submitter_name = Preston Taylor
tags = []
duplicates = []
_Launchpad user **Preston Taylor(prestontaylor)** wrote on 2022-06-29T14:23:20.476906+00:00_
In sudoers you can specify to allow sudo for a group the same as a user by simply prepending the group name with a '%'.
For Example:
[root@server2 sudoers.d]# cat 90-cloud-init-users
# Created by cloud-init v. 19.4 on Tue, 20 Apr 2021 01:07:17 +0000
# User rules for cloud-user
cloud-user ALL=(ALL) NOPASSWD:ALL
# Group rules for mygroup
%mygroup ALL=(ALL) NOPASSWD:ALL
To my knowledge his can be handled in exactly the same manner that cloud-init already handles users' sudo.
Contributor guide
Assessment
This issue has not been assessed yet.