yum -y install samba  #安装

/etc/init.d/smb start    (service smb start)

chkconfig --level 35 smb on

testparm /etc/samba/smb.conf     #检测配置文件

配置文件:/etc/samba/smb.conf

      Standalone Server Options

在windows里登录:\\IP

密码设置:

        smbpasswd -a 用户

 

create mode

directory mode