- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: Setting up new accounts *without* building home directories
- Date: Wed, 4 Jun 2014 15:08:06 -0700
This is the default for the user resource, but you can make it explicit if
you prefer:
user 'foo' do
supports manage_home: false
end
--Noah
On Jun 4, 2014, at 3:04 PM, "Kadel-Garcia, Nico"
<
>
wrote:
>
I’m going through the ‘users’ cookbook, and various environments, and am
>
trying to figure out how to set ‘useradd’ options to *not* use the ‘-M’ on
>
Linux to automatically create home directories. There are all sorts of
>
reasons not to want this: shared user homedirectories, NFS mounted homedirs
>
that are temporarily offline, and root-squashed NFS shares on client
>
servers are only some of them.
>
>
I see where the ‘-m’, which enforces home directory allocation, is being
>
set up in lib/chef/provider/user/useradd.rb. But I’m afraid I’m having
>
difficulty unfurling how to prevent it from being used at all or on an
>
environment by environment basis.
>
>
--
>
Nico Kadel-Garcia
>
Senior Systems Consultant
>
Email:
>
>
Cell Phone: +1.339.368.2428
>
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.