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

Cake Cache Models are not 777 by default #11265

Closed
2 of 3 tasks
jeffreyroberts opened this issue Oct 3, 2017 · 1 comment
Closed
2 of 3 tasks

Cake Cache Models are not 777 by default #11265

jeffreyroberts opened this issue Oct 3, 2017 · 1 comment
Labels

Comments

@jeffreyroberts
Copy link

jeffreyroberts commented Oct 3, 2017

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.4.13

  • Platform and Target: Amazon Linux, PHP 5.6, MySQL 5.5

What you did

I am using cake shells from crontab

What happened

Cake is creating cached models that are not 777, so when the user apache tries to write to them, it can't

What you expected to happen

No conflicts between the user that executes the shells and apache

screen shot 2017-10-03 at 1 23 14 pm
screen shot 2017-10-03 at 1 24 05 pm

@ADmad
Copy link
Member

ADmad commented Oct 3, 2017

World writable is a bad default from security point of view, hence the default permissions won't be changed. You can modify the cache file permissions as per your need by using "chmod" option in cache config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants