Skip to content
Snippets Groups Projects
Commit 437887f7 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed #3196

parent be08cdeb
No related branches found
No related tags found
No related merge requests found
......@@ -251,6 +251,9 @@ class shelluser_jailkit_plugin {
$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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment