Cannot change permissions of folders within vagrant home folder

前端 未结 7 2111
抹茶落季
抹茶落季 2020-12-04 08:50

When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But ca

7条回答
  •  感情败类
    2020-12-04 09:20

    My issue might be related to yours.

    I have a centos vm in vagrant as the guest and win7 as the host.

    I can't actually change the permissions in the VM of any folders that are shared with the Host.

    will report back if I discover anything useful. Discuss on google group here:

    https://groups.google.com/forum/?fromgroups=#!topic/vagrant-up/2JvcoZTuWRI

    UPDATE 1: I have also read that you can't create symlinks in shared folders.

    UPDATE 2: It seems that I can't change the permissions in the virtual box after it's been created. However in the VagrantFile you can set the permissions on the shared folders to something that suites: I.E.

    config.vm.share_folder "v-data", "/export", "/export", :owner=> 'vagrant', :group=>'httpd', :extra => 'dmode=775,fmode=775'
    

    here I have set the owner, group and the permissions that work for us.

    I hope this helps.

提交回复
热议问题