1. 安装samba 这个很简单一条命令就OK了 yum -y install samba
  2. 修改配置文件/etc/samba/smb.conf
  3. 在末尾加上

          [user_name]   // 自己创建的用户名

    comment = user_name

    path = /home/users/user_name

    writable = yes

  4.  smbpasswd  -a   user_name  把用户加入到samba用户数据库列表

      5.  service  iptables stop   //关闭网络

      6. service  iptables start  //重启网络 

      7.  setenforce 0   //关闭防火墙

      8.  /etc/init.d/samba restart  //重启samba

            vi /etc/selinux/config  这个不知道是什么意思,不做也是可以的

     在window下输入\\ip\user_name就ok了