z1kjww
Last Updated: February 25, 2016
·
9.076K
· bendihossan
A06c38dd3377bbc0db360c44a2969fed

Vagrant shared folder permissions with VirtualBox

If you're using Vagrant with VirtualBox you will find that in your shared /vagrant folder that any chown/chmod changes you run won't have any affect. This is a bit weird but you can work around it in your Vagrantfile by adding the following line:

config.vm.synced_folder ".", "/vagrant", :extra => "dmode=755,fmode=755

Depending on your needs you may have to change the octal values.

Source: https://github.com/mitchellh/vagrant/issues/897

Say Thanks
Respond

1 Response
Add your response

13160
B1f458499807b5dbd4019bfc9714f644

since Vagrant 1.3.0

config.vm.synced_folder ".", "/vagrant",  :mount_options => ["dmode=755,fmode=755"]
over 1 year ago ·
Filed Under