- From: <
>
- To:
- Subject: [chef] Modifying Users - Moving Home Directory
- Date: Thu, 3 Nov 2011 06:45:05 -0700 (PDT)
HI All-
I am very new to Chef, and was tasked to create a recipe to move a user's home
directory. I wrote (what I thought) was a nice little cookbook, with thoughts
of future re-use and expansion...but it did not work as expected. I have now
scaled back to the bare essentials:
default.rb:
user "trip" do
action :modify
home "/NewHome/trip"
supports :manage_home=>true
end
No errors are reported during the run, and the /etc/passwd file correctly
shows
the new home location. However, the contents of the original home are not
moved into the new location as I would have expected given the ":manage_home
=>
true" attribute. The user is not logged in, no other recipes are run when I
kick it off. If I cp -pR and move the directory manually, it works as
expected. It almost seems if the usermod -d is being used instead of -dm.
Any advice would be appreciated-
Eric
- [chef] Modifying Users - Moving Home Directory, weinig_eric, 11/03/2011
Archive powered by MHonArc 2.6.16.