From 3d21f613d2ad1612b21745766253034854311557 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 23 Feb 2019 13:30:23 +0100 Subject: [PATCH] Document how to get rid of stale files --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f122ef7..3d92851 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ systemctl restart nginx/apache/… It should now be working. +You should add `find /var/www/mat2-web/uploads/* -mtime +1 -exec rm {} \;` +in a crontab to remove files that people might have uploaded but never +downloaded. + # Threat model - An attacker in possession of the very same file that a user wants to clean,