Commit 945397f4 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#914 - User can login without being jailed

parent 21567d71
......@@ -96,7 +96,7 @@ class shelluser_base_plugin {
//* Disable shell user temporarily if we use jailkit
if($data['new']['chroot'] == 'jailkit') {
$command = 'usermod -L '.escapeshellcmd($data['new']['username']);
$command = 'usermod -s /bin/false -L '.escapeshellcmd($data['new']['username']);
exec($command);
$app->log("Disabling shelluser temporarily: ".$command,LOGLEVEL_DEBUG);
}
......
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