← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1356208] Re: groups syntax broken

 

*** This bug is a duplicate of bug 1354694 ***
    https://bugs.launchpad.net/bugs/1354694

** This bug has been marked a duplicate of bug 1354694
   useradd crashes if group list contains whitespace

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1356208

Title:
  groups syntax broken

Status in cloud-init:
  Triaged
Status in cloud-init package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356208/+subscriptions