Skip to content

Ensure correct permissions on directory - #487

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

Ensure correct permissions on directory#487
fengtan wants to merge 1 commit into
ezyang:masterfrom
fengtan:master

Conversation

@fengtan

@fengtan fengtan commented Jul 27, 2026

Copy link
Copy Markdown

Directories are created using mkdir() which does obey the umask.

In our case the Apache umask is set to 022 and can't be changed, with $chmod set to 777 (via caxy-htmldiff) which results in directories with permissions 755.
We'd like the perms to be set to 775 instead, however that is impossible if the umask applies.

Is it possible to call chmod() after directories are created to explicitly set file permissions to the $chmod provided?

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