Linux调试机上修改/etc/samba/smb.conf
[root@localhost kvm]# vi /etc/samba/smb.conf
末尾添加如下内容,以便Windows上可以映射Linux调试机上电/home目录以及/home/code目录
[home]
path = /home
public = yes
writable = yes
write list = root
valid users =root
[code]
path = /home/code
public = yes
writable = yes
重启samba服务
[root@localhost kvm]# systemctl restart smb.service