The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #10962

Updated by Tim Bishop about 4 years ago

*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:

pw usermod [name] -d [home]

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):

With this fix applied the command executed would be:

pw usermod [name] -d [home] -m