Issue #10962 has been reported by Tim Bishop. ---------------------------------------- Bug #10962: The pw user provider on FreeBSD doesn't respect managehome when changing a user's a home directory https://projects.puppetlabs.com/issues/10962
Author: Tim Bishop Status: In Topic Branch Pending Review Priority: Normal Assignee: Category: FreeBSD Target version: Affected Puppet version: 2.7.6 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/210 *Please note the pull request referenced on this issue includes more than just this change* When a user's home directory is changed using the pw user provider the executed command is: <pre> pw usermod [name] -d [home] </pre> If managehome is set to true the `-m` flag should also be given. This happens correctly at create time but not if the home directory is changed on an existing resource. As an aside, the behaviour of `-m` on an existing user is to create the new home directory, assuming it doesn't already exist, in the same way it would when creating a new user. I've produced a fix for this issue (on a branch with a bunch of other related FreeBSD pw improvements): https://github.com/tdb/puppet/commit/2a075ef57719e18eff7b1ea15ad1f7e584ef7aaa With this fix applied the command executed would be: <pre> pw usermod [name] -d [home] -m </pre> -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
