Do not try to chown_R the gid of .ssh, because we're making an
authorWard Vandewege <ward@curoverse.com>
Wed, 12 Oct 2016 15:50:37 +0000 (11:50 -0400)
committerWard Vandewege <ward@curoverse.com>
Wed, 12 Oct 2016 15:50:37 +0000 (11:50 -0400)
assumption about the existance of a group with the same name as the
user, and it's irrelevant anyway because the permissions on .ssh are
0700.

No issue #

services/login-sync/bin/arvados-login-sync

index e1b8c484f0413cb8ff6bfe3ac0be77aebbcd2aa7..b25ed942fb350751d5d476889ca164897feca160 100755 (executable)
@@ -97,7 +97,7 @@ begin
       f.write(@key)
       f.close()
     end
-    FileUtils.chown_R(l[:username], l[:username], userdotssh)
+    FileUtils.chown_R(l[:username], nil, userdotssh)
     File.chmod(0700, userdotssh)
     File.chmod(0750, @homedir)
     File.chmod(0600, userauthkeys)