I've been using Vagrant for a while but just now found the Mailing list! so I thought i'd ask a permissions question that has been eating at me ( scanned the list but didn't see this, but apologies if i missed it )
I'm running Vagrant on Windows 10 and Virtualbox to launch a ubuntu VM for development.
I have a folder structure like this
- Dev/
---- /public/
---- /ops/
---- Vagrantfile
Where "public" is set as the doc root of apache, and "ops" has some shell scripts i use.
I need the file permissions of public to be 755/644 directories/files and the shell scripts need to be executable.
I'm currently sidesteping this by setting all the files to 744
config.vm.synced_folder ".", "/vagrant", :mount_options => [ "dmode=755","fmode=744" ]
But if possible i'd like to have /vagrant/public ( could be everything in /vagrant except /ops ) to 755/644
and still let all the files in /vagrant/ops be set to executable.
Does anyone have a solution to this or better plan to include executable scripts into their dev environments?
Thanks
Nathan