Problem/Motivation
Drupal says "The directory sites/default is not protected from modifications and poses a security risk. You must change the directory's permissions to be non-writable" when the permissions for the directory are r-xr-xr-x (555), that is, no account is allowed to write to the directory. Screenshot attached.
Paradoxically, when the site directory's permissions are changed to 755, the error goes away, and the status report says everything is fine, so Drupal thinks a directory which is writable is non-writable, and it thinks that a directory which is non-writable is writable.
Steps to reproduce
chmod 555 sites/default- load /admin/reports/status
Proposed resolution
Modify Drupal so that it can correctly detect the file system permissions for the site directory.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
File system permissions detection now correctly recognizes when the site directory is non-writable.
| Comment | File | Size | Author |
|---|---|---|---|
| bogus-writable-message.png | 243.4 KB | bkline |
Comments
Comment #2
cilefen commentedComment #3
xjmInteresting! Moving to the main development branch, where it would need to be fixed first.
Comment #4
mstrelan commentedI'm not able to reproduce this, is anyone else able to? I note
drupal_verify_install_filehas not changed much since 2006 other than code style and #2950851: invalid conf file warnings when skip_permissions_hardening is on.Comment #6
quietone commentedI tested on main, and like @mstrelan, I am not able to reproduce this problem.
Therefore, closing as cannot reproduce.
Thanks