Puppet: System Administration Automated

Support

Ticket #1207 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

usermod problem on Solaris

Reported by: martin Assigned to: community
Priority: normal Milestone: 0.24.5
Component: Solaris Version: 0.24.4
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: Code Complexity: Trivial

Description

The -o option can only be used when changing the uid in Solaris, i.e. the command syntax is [-u uid [-o]].

So when it e.g. just tries to change the shell it fails as it tries to run: usermod -s /bin/bash -o martin

Attachments

objectadd.rd.diff (0.5 kB) - added by martin on 05/07/08 00:14:25.
diff for objectadd.rb

Change History

04/28/08 13:56:08 changed by jamtur01

  • stage changed from Unreviewed to Accepted.

05/07/08 00:14:25 changed by martin

  • attachment objectadd.rd.diff added.

diff for objectadd.rb

05/07/08 00:15:59 changed by martin

  • complexity changed from Unknown to Trivial.
  • patch changed from None to Code.

Attached a diff with a fix (which only has been tested on Solaris)

05/08/08 18:43:31 changed by martin

  • milestone set to 0.24.5.

05/12/08 23:38:38 changed by luke

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

Applied in [20e60b1].

It would be best if you used git format-patch, so your name was listed as the committer.