centos - vagrant synced_folder file permissions -


vagrant version 1.6.3

virtual box 4.3.12

vboxguestadditions-4.3.2

host os -> windows 8

guest os -> centos 6.4

this content of vagrantfile ( developer username )

config.vm.synced_folder ".", "/vagrant", disabled: true  config.vm.synced_folder ".", "/var/www"  #  # comments-> tried many combinations # :owner=> 'developer', # :group=> 'developer' # :mount_options=> ['dmode=777', 'fmode=777'] 

now when try change access permissions of synced_folder(/var/www) or sub directories or files of synced_folder chmod command,the result not expected

for example

1) vim testfile.php   2) ls -al testfile.php    -rwxrwxrwx 1 developer developer 12 sep 23 15:52 testfile.php  3) chmod 700 testfile.php    -rwxrwxrwx   1 developer developer        12 sep 23 15:52 testfile.php  4) chmod 000 testfile.php    -r-xr-xr-x   1 developer developer        12 sep 23 15:52 testfile.php  5) chmod 111 testfile.php    -r-xr-xr-x   1 developer developer        12 sep 23 15:52 testfile.php  6) chmod 077 testfile.php    -rwxrwxrwx   1 developer developer        12 sep 23 15:52 testfile.php 

basically file readable , executable "owner" , "group" , "others". question why ? there solution this? want synced_folder behave according centos access permissions.

i stuck here past few days.please help.

thank

the guest os preserves host's persmissions. try adding permissions other users on windows.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -