User resource and home directories

When I create a user with a specified home directory, the directory isn’t being
created. For instance:


group “www”

user “www” do
gid "www"
home "/home/www"
shell "/bin/bash"
password "$1$fkGAAO8e$S4Ul9tukFOf1iEU5k8nYK."
end

The problem here is that /home/www isn’t created. I cheated and created it
manually, but is that really how people usually do it?

supports :manage_home => true
On 31/12/2010 6:03 PM, noah_gibbs@yahoo.com wrote:

When I create a user with a specified home directory, the directory isn't
being
created. For instance:


group "www"

user "www" do
gid "www"
home "/home/www"
shell "/bin/bash"
password "$1$fkGAAO8e$S4Ul9tukFOf1iEU5k8nYK."
end

The problem here is that /home/www isn't created. I cheated and created it
manually, but is that really how people usually do it?

On Thu, Dec 30, 2010 at 9:23 PM, AJ Christensen aj@junglist.gen.nz wrote:

supports :manage_home => true

http://wiki.opscode.com/display/chef/Resources#Resources-User

It is thought provoking that we're not particularly clear on the wiki
how significantly the supports attribute changes the actions of a
handful of providers.

It mentions that the supports method exists, and that only a couple of providers use it. It's not terribly clear how it works from that description, no :slight_smile:

--- On Fri, 12/31/10, Bryan McLellan btm@loftninjas.org wrote:

From: Bryan McLellan btm@loftninjas.org
Subject: [chef] Re: Re: User resource and home directories
To: chef@lists.opscode.com
Date: Friday, December 31, 2010, 8:28 AM
On Thu, Dec 30, 2010 at 9:23 PM, AJ
Christensen aj@junglist.gen.nz
wrote:

supports :manage_home => true

http://wiki.opscode.com/display/chef/Resources#Resources-User

It is thought provoking that we're not particularly clear
on the wiki
how significantly the supports attribute changes the
actions of a
handful of providers.

Ohai

On Thu, Dec 30, 2010 at 10:23 PM, AJ Christensen aj@junglist.gen.nz wrote:

supports :manage_home => true

For convenience you can just use
manage_home true
in the resource now.

Dan DeLeo

On 31/12/2010 6:03 PM, noah_gibbs@yahoo.com wrote:

When I create a user with a specified home directory, the directory isn't
being
created. For instance:


group "www"

user "www" do
gid "www"
home "/home/www"
shell "/bin/bash"
password "$1$fkGAAO8e$S4Ul9tukFOf1iEU5k8nYK."
end

The problem here is that /home/www isn't created. I cheated and created it
manually, but is that really how people usually do it?