1.vi /etc/samba/smb.conf
底行模式下输入:/security
修改为: secturity=share
2.然后按esc,再按大写的G,到最下面,输入
comment = samba is testing
path = /home/share //是需要共享的文件目录
public = yes
writable = yes
browseable=yes // 在\\192.168.65.128可以访问
guest ok = yes
3.注意需要关闭虚拟机和winsows下的防火墙。(虚拟机下:system--->administrator---->securitylevel and firewall并且SELinux也要设置为disabled)