Skip to content

0777 directory permissions, why do we need that? #4484

Closed Answered by stof
kartikgits asked this question in Q&A
Discussion options

You must be logged in to vote

mkdir($dir, 0777, true) does not give full permission on the folder.
The actual permissions of the folder will depend on the umask being configured (which is often 0022), which is the right thing to do (see also the permissions of the file itself where we use chmod($key, 0666 & ~umask()) because chmod does not automatically applies the umask)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kartikgits
Comment options

Answer selected by kartikgits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants