From 34760e13a35d21f08050a4285f8a12eb37bbf9da Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 2 Feb 2010 15:27:36 -0800 Subject: Change owner of created authorized key file Otherwise sshd ignores it! --- lib/Vyatta/Login/User.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Vyatta/Login/User.pm') 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 { -- cgit v1.2.3