Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Shared Folder: Permission Denied

evamindbench edited this page Jun 19, 2015 · 4 revisions

If you're running Vagrant from a Linux host and attempt to use NFS, you may sometimes run into an error that looks like:

Error: Failed to set group to '0': Operation not permitted - /var/www

The issue is complex and after having tried a million and one things, a few PuPHPet users have discovered that adding the following to your Vagrantfile:

:linux__nfs_options => ["rw","no_root_squash","no_subtree_check"]

on the same line as:

config.vm.synced_folder "#{folder['source']}", "/mnt/vagrant-#{i}", id: "#{i}", type: 'nfs'

so it becomes:

config.vm.synced_folder "#{folder['source']}", "/mnt/vagrant-#{i}", id: "#{i}", type: 'nfs', :linux__nfs_options => ["rw","no_root_squash","no_subtree_check"]

may solve your issue.

NB The 'Vagrantfile' is not puphpet/config.yaml but most likely puphpet/vagrant/Vagrantfile-local .

Clone this wiki locally