tbrehm
2009-10-01 945397f40938ca326be1bfb91e96a4b33a9e1e13
Fixed: FS#914 - User can login without being jailed
1 files modified
2 ■■■ changed files
server/plugins-available/shelluser_base_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/shelluser_base_plugin.inc.php
@@ -96,7 +96,7 @@
                
                //* 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);
                }