Skip to content

Commit

Permalink
Remove default membership in redundant groups (canonical#4258)
Browse files Browse the repository at this point in the history
The cloud-init template for Ubuntu currently includes membership in
numerous groups. Many of these are groups that were removed from the
default list over a decade ago on the desktop, and which are better
served by udev rules today. Specifically: audio, dialout, floppy,
netdev, plugdev, video.

LP: #1923363
  • Loading branch information
waveform80 authored and TheRealFalcon committed Jul 26, 2023
1 parent 0602a13 commit 4f8c172
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/cloud.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ system_info:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
groups: [adm, cdrom, dip, lxd, sudo]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
{# SRU_BLOCKER: do not ship network renderers on Xenial, Bionic or Eoan #}
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/cloud-config-user-groups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ users:
# shell: /bin/bash
# lock_passwd: True
# gecos: Ubuntu
# groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev]
# groups: [adm, cdrom, dip, lxd, sudo]
2 changes: 1 addition & 1 deletion doc/rtd/reference/base_config_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ On an Ubuntu system, :file:`/etc/cloud/cloud.cfg` should look similar to:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
groups: [adm, cdrom, dip, lxd, sudo]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
network:
Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ tylerschultz
vorlonofportland
vteratipally
Vultaire
waveform80
WebSpider
Wind-net
wmousa
Expand Down

0 comments on commit 4f8c172

Please sign in to comment.