Skip to content

Replace overly permissive 0777 cache permissions with 0775. - #145

Open
fengtan wants to merge 1 commit into
caxy:masterfrom
fengtan:master
Open

Replace overly permissive 0777 cache permissions with 0775.#145
fengtan wants to merge 1 commit into
caxy:masterfrom
fengtan:master

Conversation

@fengtan

@fengtan fengtan commented Jul 27, 2026

Copy link
Copy Markdown

The cache directory is created with file permissions 0777 which seems overly permissive as it allows any user to (over)write files in this directory.

How about tightening permissions to 0775?

For context we use this library via Drupal's Diff module. In Drupal the default chmod for directories is also 0775 https://github.com/drupal/core/blob/11.x/lib/Drupal/Core/File/FileSystem.php#L37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant