Pascal Dreissen
2016-07-08 f1193b43f4c9fd132741d30f03f0b35841011989
server/plugins-available/shelluser_jailkit_plugin.inc.php
@@ -251,6 +251,9 @@
         $command .= 'userdel -f '.escapeshellcmd($data['old']['username']).' &> /dev/null';
         exec($command);
         
         // Remove the jailed user from passwd and shadow file inside the jail
         $app->system->removeLine($data['old']['dir'].'/etc/passwd', $data['old']['username']);
         $app->system->removeLine($data['old']['dir'].'/etc/shadow', $data['old']['username']);
         if(@is_dir($data['old']['dir'].$jailkit_chroot_userhome)) {
            $this->_delete_homedir($data['old']['dir'].$jailkit_chroot_userhome,$userid,$data['old']['parent_domain_id']);