yum install -y samba
groupadd smbgroups -g 6000
useradd smbuser1 -u 6000 -g 6000 -s /sbin/nologin -d /dev/null
smbpasswd -a smbuser1
gedit /etc/samba/smb.conf
[varwww]
comment = test resource
path = /var/www
writeable = yes
browseable = yes
write list = smbuser1
public = no
在windows 清除网络连接
net use * /del /y