The difference is due to Windows not being smart with POSIX ACL permissions 
in many cases. This is also a limitation/problem with the VMware Tools HGFS 
driver and the permissions that it uses to map in the shared directory. You 
could try changing the shared folder type to SMB which may work on both 
Windows and OSX. There are some VMware forum posts around forcing symlinks 
and permissions on the HGFS shares, which typically requires adding a 
special vm.vmx config line to enable that feature.

On Thursday, April 23, 2015 at 9:56:56 AM UTC-5, Charlie Cantoni wrote:
>
> Hey Richard,
> Did you ever find a solution to this? I'm encountering the same problem on 
> my end and can't seem to figure out why this difference is present.
>
> Thanks,
> Charlie
>
> On Tuesday, July 22, 2014 at 6:26:14 AM UTC-4, Richard Kingston wrote:
>>
>> Hi,
>>
>> I've set up a new vagrant file and provisioning script that I've can 
>> clone from a GitHub repository onto any host machine, run 'vagrant up' and 
>> away I go.
>>
>> Now, I've done exactly that on a Windows host (at work) and a Mac host 
>> (at home) but ended up with very different results.
>>
>> I'm running a WordPress development environment on both and I've noticed 
>> that the file permissions on them are different.
>>
>> Using vagrant ssh I've dropped onto both boxes and run ls -alh on both 
>> with these results:
>>
>> From the Windows host (which doesn't ask for FTP permissions):
>>
>> drwxrwxrwx 1 vagrant vagrant 0 Jul 22 09:47 .
>> drwxrwxrwx 1 vagrant vagrant 0 Jul 22 09:47 ..
>> -rwxrwxrwx 1 vagrant vagrant 30 Jul 22 08:19 index.php
>> drwxrwxrwx 1 vagrant vagrant 0 May 8 17:45 twentyfourtee
>> drwxrwxrwx 1 vagrant vagrant 0 May 8 17:45 twentytwelve
>>
>> From the Mac host (which does ask for FTP permissions):
>>
>> drwxr-xr-x 1 vagrant vagrant 0 Jul 22 09:47 .
>> drwxr-xr-x 1 vagrant vagrant 0 Jul 22 09:47 ..
>> -rw-r--r-- 1 vagrant vagrant 30 Jul 22 08:19 index.php
>> drwxr-xr-x 1 vagrant vagrant 0 May 8 17:45 twentyfourtee
>> drwxr-xr-x 1 vagrant vagrant 0 May 8 17:45 twentytwelve
>>
>> When running on the Mac, the vagrant box seems to have lost some write 
>> permissions?!
>>
>> Can anyone help to explain this please?
>>
>> Thanks
>>
>> Rich
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to