The requirements test for writable directories reports r-xr-xr-x (555) as writable

Created on 6 March 2024, 3 months ago
Updated 7 June 2024, 9 days ago

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

  1. chmod 555 sites/default
  2. 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.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
SystemΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States bkline@rksystems.com Virginia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024