Open nfourteen opened 7 years ago
Some more information:
Folder permissions:
/Users/<user-name>/Sites/vagrant-magento
owned by root:root
/Users/<user-name>/Sites/vagrant-magento/magento2ce
owned by dialout:<XXXXX>
<XXXXX>
are multiple numbers, typical NFS permissions/vagrant
owned by root:root
/vagrant/*
owned by vagrant:vagrant
/vagrant/redis-stable.tar.gz
is owned by root:root
Was the shared folder designed to be mounted to /Users/<user-name>/Sites/vagrant-magento
in the guest box?
After some digging, I believe this is an issue with nfsd
in Mac OSX Sierra.
See: NFS permission problem on MacOS Sierra and all sorts of permission errors with nfs on osx sierra.
Running the following command from the host machine in the root of the shared folder, i.e. /Users/<user-name>/Sites/vagrant-magento/magento2ce
appears to refresh all NFS links. Then I can run commands via SSH in the guest machine and everything seems to work as expected, i.e. no permission issues.
ls -lR > /dev/null
I'll leave this issue open for now in case anyone else runs into this problem, but it can be closed as it's not an issue related to this repo.
Try to give the right permission for full disk at mac OS
Apache and PHP-FPM are running with
vagrant:vagrant
permissions. However, the shared folder on my Mac is not being mounted to the/vagrant
directory. Instead, myvagrant-magento
folder is being mounted on the guest machine at/Users/<user-name>/Sites/vagrant-magento
. I believe this is why I'm running into permissions issues, i.e. SSHed into the box I can't runrm -rf var/*
andrm -rf pub/static/*
only deletes some files but others aren't deleted because permissions are denied. Furthermore, runningnpm
while SSHed into the box to work withgrunt
is having all kinds of permission issues.Any ideas on how to overcome these permission issues?