diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php index 651ccc99707b07f11a8ee8e171237134803945cb..e19796cfca45778e8a9522ab8167e041306fd381 100755 --- a/server/plugins-available/shelluser_base_plugin.inc.php +++ b/server/plugins-available/shelluser_base_plugin.inc.php @@ -263,7 +263,7 @@ class shelluser_base_plugin { $homedir = $data['old']['dir']; if(substr($homedir, -1) !== '/') $homedir .= '/'; $files = array('.bash_logout', '.bash_history', '.bashrc', '.profile'); - $dirs = array('.ssh'); + $dirs = array('.ssh', '.cache'); foreach($files as $delfile) { if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile); } diff --git a/server/plugins-available/shelluser_jailkit_plugin.inc.php b/server/plugins-available/shelluser_jailkit_plugin.inc.php index a391835790d1f0370191fce16fb3d17bff1b385c..3c8e2948a1d6c5d5bb83e4006961fd2e7f29a2d3 100755 --- a/server/plugins-available/shelluser_jailkit_plugin.inc.php +++ b/server/plugins-available/shelluser_jailkit_plugin.inc.php @@ -541,7 +541,7 @@ class shelluser_jailkit_plugin { // delete dir if(substr($homedir, -1) !== '/') $homedir .= '/'; $files = array('.bash_logout', '.bash_history', '.bashrc', '.profile'); - $dirs = array('.ssh'); + $dirs = array('.ssh', '.cache'); foreach($files as $delfile) { if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile); }