Configuration Environment
Win10
Vmware 15
ubuntu 16.04
Vmware settings
installation
sudo apt-get install samba # 安装samba
sudo apt-get install smbclient # 安装smbclient
sudo apt-get install cifs-utils # 安装smbf
Set up
Modify the configuration file:
sudo gedit /etc/samba/smb.conf
Then added at the end in the configuration file:
[vm_share] # 共享后的文件夹名称
comment = ubuntu Directories
path = /home/ubuntu/share # 想共享的文件夹
public = yes
writable = yes
valid users = root # 用户
create mask = 0777
directory mask = 0777
available = yes
browseable = yes
Restart samba save:
sudo /etc/init.d/samba restart
set password:
sudo smbpasswd -a root
win10 access
Set up
Shortcuts: win + R
Input:gpedit.msc
Computer Configuration -> Administrative Templates -> Network -> Laman Workstation ->
double click to enable guest login unsafe , select Enabled :
access
View a virtual machine's IP address, my way of bridging the virtual machine settings window, enter in the windows \\10.156.7.9
, fill in your username and password, you can see the shared folder:
Right shared folder, select mapped network drive , is provided as follows:
After direct access to:
Thus, to achieve the file sharing between win10 and vmware virtual machine: