![](/img/trans.png)
[英]Failing to create SMB shared folder using Vagrant on Windows host with linux guest
[英]Vagrant: Windows host and Windows guest - how to restrict smb share?
我有Windows 7主机和Windows Server 2016来宾。
我的Vagrantfile
有以下行:
config.vm.synced_folder ".", "c:/vagrant", type: "smb", smb_username: "xxx", smb_password: "xxx"
做一个vagrant up
使包含Vagrantfile
的文件夹(在主机上)对所有人Vagrantfile
读。 我该如何限制流浪汉?
放置此处以提高可见性,但未尝试使用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"]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.