summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 15:27:36 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 15:27:36 -0800
commit34760e13a35d21f08050a4285f8a12eb37bbf9da (patch)
treed76b9c827573460746ed6db1d861e9d574f14989
parent868fb51d85439d2cb045cf810f23943c60c42c41 (diff)
downloadvyatta-cfg-system-34760e13a35d21f08050a4285f8a12eb37bbf9da.tar.gz
vyatta-cfg-system-34760e13a35d21f08050a4285f8a12eb37bbf9da.zip
Change owner of created authorized key file
Otherwise sshd ignores it!
-rwxr-xr-xlib/Vyatta/Login/User.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index b9e2ec98..e6632194 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -95,6 +95,7 @@ sub _authorized_keys {
close $auth;
chmod( 0640, $keyfile );
+ chown( $uid, $gid, $keyfile)
}
sub _delete_user {