Vagrant set default share permissions
Solution 1:
Solved with this line in my Vagantfile, for v1.3.2 and later:
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=666"]
Syntax before 1.2 version:
config.vm.share_folder("v-root", "/vagrant", ".", :extra => 'dmode=770,fmode=770')
Credits: http://ubuntuforums.org/showthread.php?t=1434884
For Vagrant 1.2 the right syntax was:
config.vm.synced_folder ".", "/vagrant", :extra => "dmode=777,fmode=666"
Credits: Aal
For v1.3.2 and later the 'extra' flag on synced folder was changed to 'mount_options'. The options need to be in an array with each option as a separate string ( as opposed to both options being in a single string in previous versions )