Issue #22070 has been updated by Justin Honold.
Digging a bit further, I found "CREATE_HOME yes" in /etc/login.defs. And that there are various ways to override this behavior, like -K (key-based) and -M (suppress creation). Intuitively, I would apparently expect Puppet's documented behaviors to employ something like that. I was able to apply a sufficient no-dir workaround by creating a "system" user, but it technically isn't one. ---------------------------------------- Bug #22070: Puppet managing home directories on Amazon Linux (RHEL-derived) whether I want it or not https://projects.puppetlabs.com/issues/22070#change-96029 * Author: Justin Honold * Status: Unreviewed * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: * Keywords: * Branch: ---------------------------------------- First, I set up a user account along these lines: user { 'myuser': ensure => 'present', comment => 'My User', password => '!!', shell => '/usr/sbin/nologin', home => '/home/myuser', } except I had a typo and used '/hoome/myuser'. It failed because it said it couldn't create the dir, which I thought was odd, because Puppet didn't manage dirs by default as per http://docs.puppetlabs.com/references/stable/type.html#user . I corrected the typo, explicitly set managehome to false (the claimed default), and it still created the dir. Then I tried removing the home entry entirely, and it still defaulted to /home/myuser and created it. It also copied skelfiles each time, and there isn't an apparent option to include or exclude that behavior. What is happening here? Is managehome mandatory with useradd-based systems on newer versions of Puppet? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
