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

managing file ownership re: vagrant ssh/drush #5

Open
tannerjfco opened this issue May 13, 2014 · 2 comments
Open

managing file ownership re: vagrant ssh/drush #5

tannerjfco opened this issue May 13, 2014 · 2 comments

Comments

@tannerjfco
Copy link

So drupal-nfs works pretty damn well for me, and I encounter no permissions fun manipulating files from my host. I do, however, run into permission issues using drush via vagrant ssh, which runs as the vagrant user and can't manipulate files the files that are all owned by www-data unless i sudo. Is there a good way to address this?

@timodwhit
Copy link

Yeah, we have noticed that to, we manage that issue by running things as sudo.

So when logged in sudo su

or run them as sudo. sudo drush cc all

@tannerjfco
Copy link
Author

Would something like ACL and/or umask help with this? I installed the ACL package and gave this a go on the files directory, it helped a migration to process, though it still had some permission errors after trying to set permissions on the files:

setfacl -R -m d:u:www-data:rwx,u:www-data:rwx,d:u:vagrant:rwx,u:vagrant:rwx files

Error:

WD file: The file permissions could not be set on public://pages

If we could get the file ownership to be kept as the www-data user, this could probably work. Maybe this and a umask could achieve this, but I'm not overly familiar with umask to be honest.

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