The stats folder used to be owned by root, zo costumers cant delete the files and the space is not counted with the discquota Now it is owned by the webuser. Is there a way to change that back? i can do a chown but that can only be after the script is done.
Users could delete the stats folder before as well. On a Linux system: when a folder owned by root (in this case stats) is in a folder owned by the user (in this case web), then this user who owns web can delete a folder owned by root. So your change does not ürevent the ability to delete the stats by the user.