summaryrefslogtreecommitdiff
path: root/bin/install
diff options
context:
space:
mode:
authorJavier Castro <javier.alejandro.castro@gmail.com>2013-04-04 00:07:46 -0300
committerJavier Castro <javier.alejandro.castro@gmail.com>2013-04-04 00:07:46 -0300
commit119911c0cef5af241f25b01a0cd7bcdbff863319 (patch)
tree3a86c6837d56b6f1334edd4e1c01a41dc27da42d /bin/install
parentff484e65afa129c3cb37c1a1d5f92f33f129fef0 (diff)
downloadgitlab-shell-119911c0cef5af241f25b01a0cd7bcdbff863319.tar.gz
Fix permissions for SSH with StricModes onn
I've installed following the instructions on Fedora 18, and would be nice to leave the permissions nicely for SSH daemons configured with StrictModes On (cause u can get as I got this... http://www.daveperrett.com/articles/2010/09/14/ssh-authentication-refused/) Cheers!
Diffstat (limited to 'bin/install')
-rwxr-xr-xbin/install2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/install b/bin/install
index 6b23df8..f8c12f8 100755
--- a/bin/install
+++ b/bin/install
@@ -12,7 +12,9 @@ key_dir = File.dirname("#{config.auth_file}")
commands = [
"mkdir -p #{config.repos_path}",
"mkdir -p #{key_dir}",
+ "chmod 700 #{key_dir}",
"touch #{config.auth_file}",
+ "chmod 600 #{config.auth_file}",
"chmod -R ug+rwX,o-rwx #{config.repos_path}",
"find #{config.repos_path} -type d -print0 | xargs -0 chmod g+s"
]