groups syntax broken

Bug #1356208 reported by Lukas
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-init
Triaged
Medium
Unassigned
cloud-init (Ubuntu)
Confirmed
High
Unassigned

Bug Description

When adding a user, the 'groups' keyword only works if multiple groups are given in useradd syntax, i.e. as a single string without spaces

groups: adm,sudo,cdrom

I'm guessing the value is passed directly to the --groups command line option of useradd.
Any of the more intuitive syntax forms (including the one in the documentation at http://cloudinit.readthedocs.org/en/latest/topics/examples.html) do not seem to work. I've tried

groups: [adm, sudo, cdrom]

groups: adm, sudo, cdrom

groups:
  - adm
  - sudo

Robie Basak (racb)
Changed in cloud-init (Ubuntu):
importance: Undecided → High
Scott Moser (smoser)
Changed in cloud-init:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cloud-init (Ubuntu):
status: New → Confirmed
Revision history for this message
Nobuto Murata (nobuto) wrote :

Bug: #1354694 with a patch attached looks similar.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.