From 0d7ba44bc901fe37528054370bae7578aa6e1bdb Mon Sep 17 00:00:00 2001 From: Rafa Couto Date: Sat, 3 Jun 2017 01:19:00 +0200 Subject: [PATCH] setfacl commands in the right order Order matters. Very unlikely case (but still likely): new files can be created between setfacl commands and those files will be out for default ACL application. So, the right order to apply setfacl is the default first and change current ones after. --- setup/file_permissions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/file_permissions.rst b/setup/file_permissions.rst index 15d78c410cd..a5f9eaefa19 100644 --- a/setup/file_permissions.rst +++ b/setup/file_permissions.rst @@ -50,8 +50,8 @@ following script to determine your web server user and grant the needed permissi $ HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1) # if this doesn't work, try adding `-n` option - $ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var $ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var + $ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var .. note::