I understand that Drupal hardens permissions of the /web/sites/default
directory and its files, each time that the system_requirements()
function is called, typically after each composer require
operation.
The particular hardening is removing the write
permission from the user
of the Drupal file tree, and to soften that hardening one would have to do chmod u+w web/sites/default
.
If I understand correctly, why does Drupal remove the write
permission from the user
of the Drupal file tree?
What typical problem does it prevent, or solve?