Skip to content

Commit b621ee5

Browse files
rafacoutoxabbuh
authored andcommitted
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.
1 parent 79ad314 commit b621ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/file_permissions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ following script to determine your web server user and grant the needed permissi
5050
5151
$ 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)
5252
# if this doesn't work, try adding `-n` option
53-
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs
5453
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs
54+
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs
5555
5656
.. note::
5757

0 commit comments

Comments
 (0)