Skip to content

Commit 1f59ad5

Browse files
committed
Fix typo in parent user related variable when creating new jailkit shell user. This bug was interfering with the correct functioning of the plugin.
1 parent f81f3ec commit 1f59ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/shelluser_jailkit_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function _add_jailkit_user()
399399
if($this->data['new']['active'] != 'y') $shell = '/bin/false';
400400

401401
$app->system->usermod($this->data['new']['username'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_userhome, $shell);
402-
$app->system->usermod($this->data['new']['puser'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_userhome, '/usr/sbin/jk_chrootsh');
402+
$app->system->usermod($this->data['new']['puser'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_puserhome, '/usr/sbin/jk_chrootsh');
403403

404404
$this->app->log("Added jailkit user to chroot with command: ".$command, LOGLEVEL_DEBUG);
405405

0 commit comments

Comments
 (0)