Hello, a little bit more of information please.
1. Are both using the same base box + vagrant file?
2. That directory is on Virtualbox or is a OS directory?
If the filesystem is a virtualbox, it may be due the different os you have,
you can try to ask vagrant to set 777 permisions if that is what you want,
example:
config.vm.share_folder("v-root", "/vagrant", ".", :extra =>
'dmode=777,fmode=770')
Here please do a pause, if the shared folder is virtualbox or vmware
you need to check the permissions and make them 777 if that is what you
want.
if the filesystem is not on virtualbox, you can check the UMASK
by default directories are created as 777 - umask, and files are created
as 666 - umask
a default umask can be 007 or 027, so directories can be 770 or 757,
and files will be 660 or 640
so, in ~/.bash_profile you can override this umask as
umask 000
and that will force all the directories to be 777 and files be 666
Alvaro.
On Tue, Jul 22, 2014 at 10:26 PM, Richard Kingston <
[email protected]> 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.
>
--
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.