apt install samba samba-common
vim /etc/samba/smb.conf 修改如下:
[homes]
comment = Home Directories
browseable = yes
read only = no
path = /root
valid users = root
添加samba客户端用户:
smbpasswd -a root
重启ubuntu虚拟机
在windows7下映射网络驱动器:
\\192.168.242.132\root