Skip to content

Commit 945397f

Browse files
committed
Fixed: FS#914 - User can login without being jailed
1 parent 21567d7 commit 945397f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function insert($event_name,$data) {
9696

9797
//* Disable shell user temporarily if we use jailkit
9898
if($data['new']['chroot'] == 'jailkit') {
99-
$command = 'usermod -L '.escapeshellcmd($data['new']['username']);
99+
$command = 'usermod -s /bin/false -L '.escapeshellcmd($data['new']['username']);
100100
exec($command);
101101
$app->log("Disabling shelluser temporarily: ".$command,LOGLEVEL_DEBUG);
102102
}

0 commit comments

Comments
 (0)