summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-12-28 12:18:19 -0700
committermo khan <mo@mokhan.ca>2015-12-28 12:18:19 -0700
commit076b5d38951fb016657fb079b0480cd6b32bc1b6 (patch)
tree928066c18c19cb87bc8fcfba7598b1334d9f17b2
parent6205f5bf234863ee73e32de066ef9609173c9575 (diff)
fix permissions on aws dirs.
-rw-r--r--recipes/aws.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes/aws.rb b/recipes/aws.rb
index 1a9d86a..fb1eb7a 100644
--- a/recipes/aws.rb
+++ b/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