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

Does not have permission on var/generation #10

Open
ghost opened this issue Dec 2, 2016 · 3 comments
Open

Does not have permission on var/generation #10

ghost opened this issue Dec 2, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 2, 2016

"Command line user does not have read and write permissions on var/generation directory. Please address this issue before using Magento command line."
Please help me!

@Snikme
Copy link

Snikme commented Feb 4, 2017

i installed "docker-machine-nfs" before executing "bin/console install {domain}" and it fixed the issue for me

@0m3r
Copy link

0m3r commented Jan 16, 2018

How can I fix it?
I try to change permissions inside container

docker exec -ti magento2_web_1 bash 
root@ecf3224c5689:/# chmod -R -v 777 /var/www/html/generated/
chmod: changing permissions of '/var/www/html/generated/': Read-only file system

I try to change ro read only permissions appdata: ro => - appdata
but it does not help me

docker exec -ti magento2_php_1 bash
www-data@3195d579da98:~/html$ chmod -R g+rws /var/www/html/generated
chmod: changing permissions of '/var/www/html/generated/.htaccess': Operation not permitted
www-data@3195d579da98:~/html$ su 
Password: 
su: Authentication failure

And I think here need to add somethink like
chmod -R ug+rws /var/www/html/generated

@0m3r
Copy link

0m3r commented Jan 16, 2018

#32

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