We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af0cfd commit 3fb9be6Copy full SHA for 3fb9be6
server/plugins-available/shelluser_base_plugin.inc.php
@@ -402,6 +402,12 @@ private function _setup_ssh_rsa() {
402
}
403
$sshrsa = trim($sshrsa);
404
$usrdir = escapeshellcmd($this->data['new']['dir']);
405
+ //* Home directory of the new shell user
406
+ if($this->data['new']['chroot'] == 'jailkit') {
407
+ $usrdir = escapeshellcmd($this->data['new']['dir']);
408
+ } else {
409
+ $usrdir = escapeshellcmd($this->data['new']['dir'].'/home/'.$data['new']['username']);
410
+ }
411
$sshdir = $usrdir.'/.ssh';
412
$sshkeys= $usrdir.'/.ssh/authorized_keys';
413
0 commit comments