Issue #20726 has been reported by Kevin Sumner.
----------------------------------------
Bug #20726: usermod command arguments out of order
https://projects.puppetlabs.com/issues/20726
* Author: Kevin Sumner
* Status: Unreviewed
* Priority: High
* Assignee:
* Category: user
* Target version:
* Affected Puppet version: 3.2.0-rc2
* Keywords:
* Branch:
----------------------------------------
Using 3.2.0-rc2 client pointed at a 3.2.0-rc2 server, I'm getting this:
<pre>
Error: Could not set home on user[nagios]: Execution of '/usr/sbin/usermod -d
/var/lib/nagios nagios -M' returned 2: Usage: usermod [options] LOGIN
Options:
-a, --append append the user to the supplemental GROUPS
(use only with -G)
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the new
location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-Z, --selinux-user new selinux user mapping for the user account
</pre>
Notice that the -M comes after the username, nagios. That's causing the
error. Downgrading the client to 3.1.1 works correctly.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.