Change ssh public key to 700 after key-sync
authorLunarShaddow <aflyhorse@gmail.com>
Mon, 28 Sep 2015 02:48:03 +0000 (10:48 +0800)
committerLunarShaddow <aflyhorse@gmail.com>
Mon, 28 Sep 2015 02:48:03 +0000 (10:48 +0800)
services/login-sync/bin/arvados-login-sync

index fc11e2776b93c62d4a6580e24a5b92e027f963e0..c92fc9b00dd0cc723e4fd64bd2b001daa8bce60c 100755 (executable)
@@ -100,6 +100,7 @@ begin
     FileUtils.chown_R(l[:username], l[:username], userdotssh)
     File.chmod(0700, userdotssh)
     File.chmod(0750, @homedir)
+    File.chmod(0600, userauthkeys)
   end
 
   devnull.close