Commit 076b5d3

mo khan <mo@mokhan.ca>
2015-12-28 19:18:19
fix permissions on aws dirs.
1 parent 6205f5b
Changed files (1)
recipes
recipes/aws.rb
@@ -6,16 +6,22 @@ home = "/home/#{node["stronglifters"]["username"]}"
 directory "#{home}/.aws/" do
   owner username
   group username
-  mode "0755"
+  mode "0700"
   recursive true
   action :create
 end
 
 configuration = node["stronglifters"]["aws"]
 template "#{home}/.aws/config" do
+  owner username
+  group username
+  mode "0700"
   variables(configuration)
 end
 
 template "#{home}/.aws/credentials" do
+  owner username
+  group username
+  mode "0700"
   variables(configuration)
 end