Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4491

Adding user to group fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Done
    • PUP 4.0.0
    • PUP 4.1.0
    • Types and Providers
    • None
    • Linux 2.6.32-504.3.3.el6.x86_64 x86_64 GNU/Linux

    • 1
    • Client 2015-05-13
    • Bug Fix

    Description

      When adding a user to a group, the command usermod fails:

      user.pp

      user {'root':
        groups => ['root', 'wheel'],
      }
      

      Console output

      Error: Could not set groups on user[root]: Execution of '/usr/sbin/usermod -S root,wheel root' returned 2: /usr/sbin/usermod: invalid option -- 'S'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              HugoBoos Hugo
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support