Reputation: 3416
Trying to set up a little Vagrant development environment right now using the Laravel framework and need to make my /vagrant/storage/views folder writeable, but I cannot get the permissions on the folder to change no matter what!
I have done:
sudo chmod -R 777 /vagrant/storage/views
...and still am left with rwxr-xr-x permissions on that folder afterwards. I can change permissions of files, but not folders within my /vagrant folder.
Anyone have any ideas on how to solve this? Thanks.
Upvotes: 2
Views: 3087
Reputation: 97
I am using this solution. I though I's share for Vagrant 1.6.3
config.vm.synced_folder "LOCAL FOLDER", "/var/www", mount_options: ["dmode=777","fmode=666"]
LOCAL FOLDER = I put my site in a folder. Since the folder is in the same directory as my Vagrantfile I dont have a slash before or trailing.
/var/www = this is where my site lives on the guest.
mount_options = i had trouble with some -R permissions and such - this seemed to fix it.
Upvotes: 0
Reputation: 3416
In case anyone else runs into this, the problem was that I was trying to change the permissions on the shared folder from within the virtual machine. As soon as I just changed the permissions on my host copy of the folder, it propagated through to the guest machine's copy of the folder just fine.
Upvotes: 6