1、安装samba的rpm包
samba-common-4.1.12-21.el7_1.x86_64 samba-libs-4.1.12-21.el7_1.x86_64 samba-4.1.12-21.el7_1.x86_64 samba-client-4.1.12-21.el7_1.x86_64
2、添加用户
useradd test1 passwd test1 smbpasswd -a test1
3、修改配置文件
vi /etc/samba/smb.conf
#============================ Share Definitions ============================== [it] comment = it path = /mnt/it public = no writable = yes
4、启动samba服务
systemctl start smb.service