繁体   English   中英

无业游民:Windows主机和Windows来宾-如何限制SMB共享?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM