Hello,
I was experiencing a lot of problems when my users were able to delete their /log directory despite of .no_delete file in it.
As a matter of fact (especially in my server setup) every user who is with 'administrator' status owns his /log directory and .no_delete file respectively. There was no reason why they couldn't delete this file and the whole directory, which prevented apache from starting again.
What I did was:
Edited /root/ispconfig/scripts/lib/config.lib.php
and added
Code:
$root_gruppe = $mod->system->root_group();
exec("chmod 400 $web_path/user/.no_delete");
exec("chown root:$root_gruppe $web_path/user/.no_delete");
exec("chmod 400 $web_path/log/.no_delete");
exec("chown root:$root_gruppe $web_path/log/.no_delete");
exec("chmod 400 $web_path/cgi-bin/.no_delete");
exec("chown root:$root_gruppe $web_path/cgi-bin/.no_delete");
exec("chmod 400 $web_path/ssl/.no_delete");
exec("chown root:$root_gruppe $web_path/ssl/.no_delete");
exec("chmod 400 $web_path/phptmp/.no_delete");
exec("chown root:$root_gruppe $web_path/phptmp/.no_delete");
exec("chmod 400 $web_path/web/error/.no_delete");
exec("chown root:$root_gruppe $web_path/web/error/.no_delete");
right after
Code:
exec("chown -R $user_username $web_path/log/* &> /dev/null");
in the section that follows after
Code:
////////// Verzeichnisse erzeugen ENDE ///////////
then i executed the command
Code:
find . -name ".no_delete" -exec chown root:root '{}' \;
in /var/www - where ISPConfig creates the webs in my server setup, just to make sure all previously created .no_delete files are owned by root.
That I believe solved my problem.
Recent comments
14 hours 12 min ago
15 hours 11 min ago
18 hours 58 min ago
20 hours 12 min ago
23 hours 49 min ago
1 day 7 hours ago
1 day 15 hours ago
1 day 17 hours ago
2 days 8 hours ago
2 days 10 hours ago