windows和linux通过smb共享

1.创建用户 wandywang
2.确定共享目录 如/home/wandywang
3./etc/samba/smb.conf添加
[wandywang]
   comment = wandywang
   path = /home/wandywang
   writeable = yes
   browseable = yes
   guest ok = yes
   public = yes
   printable = no
   create mode = 0666
   directory mode = 0777
4.创建smb密码
smbpasswd -a wandywang
5.重启smb   
/etc/init.d/samba restart
/etc/init.d/samba stop
/etc/init.d/samba start
6.windows下共享
网上邻居-映射网网络驱动器