Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why 0666 mode for cache file #48

Closed
L0rD59 opened this issue Jul 24, 2014 · 1 comment
Closed

Why 0666 mode for cache file #48

L0rD59 opened this issue Jul 24, 2014 · 1 comment

Comments

@L0rD59
Copy link

L0rD59 commented Jul 24, 2014

Hi all,

Someone can tell me why the file cache are 0666 mode, why not 0660 ? why authorized other to read the cache ??

chmod($tmpFile, 0666 & ~umask()); in src / Metadata / Cache / FileCache.php at line 45

My issue is that i run in box with NFS shared in 0660 mode for security.

Thx for explanation

@stof
Copy link
Contributor

stof commented Aug 19, 2014

the actual mode is not 0666 but 0666 minus the umask (which is generally set to 0022 in most distributions)

@L0rD59 L0rD59 closed this as completed Oct 10, 2014
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

No branches or pull requests

2 participants