Till Brehm
2015-06-03 3fb9be68159f94f4fe9f6fac579b31b5533b6dc7
Fix for FS#3857 .ssh key directory problem.
1 files modified
6 ■■■■■ changed files
server/plugins-available/shelluser_base_plugin.inc.php 6 ●●●●● patch | view | raw | blame | history
server/plugins-available/shelluser_base_plugin.inc.php
@@ -402,6 +402,12 @@
        }
        $sshrsa = trim($sshrsa);
        $usrdir = escapeshellcmd($this->data['new']['dir']);
        //* Home directory of the new shell user
        if($this->data['new']['chroot'] == 'jailkit') {
            $usrdir = escapeshellcmd($this->data['new']['dir']);
        } else {
            $usrdir = escapeshellcmd($this->data['new']['dir'].'/home/'.$data['new']['username']);
        }
        $sshdir = $usrdir.'/.ssh';
        $sshkeys= $usrdir.'/.ssh/authorized_keys';