diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-02 15:27:36 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-02 15:27:36 -0800 |
commit | 34760e13a35d21f08050a4285f8a12eb37bbf9da (patch) | |
tree | d76b9c827573460746ed6db1d861e9d574f14989 /lib | |
parent | 868fb51d85439d2cb045cf810f23943c60c42c41 (diff) | |
download | vyatta-cfg-system-34760e13a35d21f08050a4285f8a12eb37bbf9da.tar.gz vyatta-cfg-system-34760e13a35d21f08050a4285f8a12eb37bbf9da.zip |
Change owner of created authorized key file
Otherwise sshd ignores it!
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 1 |
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 { |