步骤1
vim /etc/samba/smb.conf
security = user
[guwenxiang]
path = /home/guwenxiang
browseable = yes
create mask = 0644
directory mask = 0755
valid users = guwenxiang
write list = guwenxiang
read list = guwenxiang
步骤2
vi /etc/sysconfig/selinux
SELINUX=disabled
步骤3.
sudo smbpasswd -a guwenxiang
步骤4
service iptables stop
setenforce 0
service smb restart