tbrehm
2009-03-15 07c3bd9b777e55d0b8fc988d6583e44861a3ee43
server/plugins-available/shelluser_base_plugin.inc.php
@@ -90,9 +90,9 @@
            
            //* Disable shell user temporarily if we use jailkit
            if($data['new']['chroot'] == 'jailkit') {
               $command = 'usermod --lock '.escapeshellcmd($data['new']['username']);
               $command = 'usermod -L '.escapeshellcmd($data['new']['username']);
               exec($command);
               $app->log("Disabling shelluser temporarily: ".$data['new']['username'],LOGLEVEL_DEBUG);
               $app->log("Disabling shelluser temporarily: ".$command,LOGLEVEL_DEBUG);
            }
         
         } else {
@@ -148,7 +148,7 @@
         // Get the UID of the user
         $userid = intval($app->system->getuid($data['old']['username']));
         if($userid > $this->min_uid) {
            $command = 'userdel --force';
            $command = 'userdel -f -r';
            $command .= ' '.escapeshellcmd($data['old']['username']);
         
            exec($command);