Skip to content

Commit ef94012

Browse files
committed
minor symfony#7987 setfacl commands in the right order (rafacouto)
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes symfony#7987). Discussion ---------- 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. Commits ------- b621ee5 setfacl commands in the right order
2 parents 79ad314 + b621ee5 commit ef94012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/file_permissions.rst

+1-1
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)