We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21567d7 commit 945397fCopy full SHA for 945397f
1 file changed
server/plugins-available/shelluser_base_plugin.inc.php
@@ -96,7 +96,7 @@ function insert($event_name,$data) {
96
97
//* Disable shell user temporarily if we use jailkit
98
if($data['new']['chroot'] == 'jailkit') {
99
- $command = 'usermod -L '.escapeshellcmd($data['new']['username']);
+ $command = 'usermod -s /bin/false -L '.escapeshellcmd($data['new']['username']);
100
exec($command);
101
$app->log("Disabling shelluser temporarily: ".$command,LOGLEVEL_DEBUG);
102
}
0 commit comments