Puppet: System Administration Automated

Support

Ticket #553 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

user managehome => true causes useradd to fail on RHEL (and likely Fedora)

Reported by: jimmyharris Assigned to: luke
Priority: normal Milestone:
Component: library Version: 0.22.2
Severity: normal Keywords: managehome, useradd
Cc: Triage Stage:
Attached Patches: Complexity:

Description

Setting a user's managehome => true causes useradd to fail on RHEL (and the same should occur on Fedora) due to the -M flag being hardcoded into provider/user/useradd.rb and used whether -m is used or not. Using both -M and -m causes useradd to fail with an error.

The following lines need to be removed as the RHEL / Fedora test for -M has been added further in the file.

# stupid fedora case Facteroperatingsystem?.value

when "Fedora", "Red Hat?":

cmd << "-M"

else

end

Sorry, I don't have the right tools on this computer to add the patch myself.

Change History

03/21/07 21:45:25 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2341].