0

I have a Windows 7 host and a Windows Server 2016 guest.

I have the following line in my Vagrantfile:

config.vm.synced_folder ".", "c:/vagrant", type: "smb", smb_username: "xxx", smb_password: "xxx"

Doing a vagrant up makes the folder containing theVagrantfile (on the host) readable for everyone. How can I restrict this to the vagrant guest?

langlauf.io
  • 3,009
  • 2
  • 28
  • 45

1 Answers1

0

Putting here for visibility purpose but did not try with windows guest:

config.vm.synced_folder '', 'c:/vagrant',
type: 'smb',
owner: 'vagrant',
smb_username: "xxx", smb_password: "xxx",
mount_options: [dir_mode=0775,file_mode=0664"]
Frederic Henri
  • 51,761
  • 10
  • 113
  • 139