Commit 119911c0 authored by Javier Castro's avatar Javier Castro

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!
parent ff484e65
......@@ -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"
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment