Commit 3fb9be68 authored by Till Brehm's avatar Till Brehm

Fix for FS#3857 .ssh key directory problem.

parent 5af0cfd9
......@@ -402,6 +402,12 @@ class shelluser_base_plugin {
}
$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';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment