scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 546 forks source link

Recurring issue with chmod when ssh'd #236

Closed dxvargas closed 7 years ago

dxvargas commented 8 years ago

I have this issue https://github.com/scotch-io/scotch-box/issues/61 in v2.5 $ chmod +x filename.sh ... is ignored.

This is completely blocking, because I can't run phing etc...

I already tried these:

config.vm.synced_folder ".", "/var/www", mount_options: ['dmode=777','fmode=666'] config.vm.synced_folder ".", "/var/www", owner: "vagrant", group: "_www", :mount_options => ["dmode=777", "fmode=774"] config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

dxvargas commented 8 years ago

Well the best is to avoid the apache documentRoot not to be a synced_folder, like this I can manage permissions without problems. Should I close the issue? I still think this problem should be addressed.

XedinUnknown commented 8 years ago

Not having the docroot being synced would completely destroy the workflow for me and thousands of other users. Not being able to execute scripts in that dir is completely blocking, because I can't run the app's install script.

veganista commented 8 years ago

Have you tried the NFS option?

config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }

That has worked for me, on Windows and OSX. Seems to fix a few permissions problems, not 100% sure of the side effects though

dxvargas commented 7 years ago

Thanks @veganista , I tried that and it didn't solve the problem. I guess I should first follow the instructions here: https://www.vagrantup.com/docs/synced-folders/nfs.html But, sorry, I am not really comfortable with all the needed nfs configurations.