cat >> /etc/samba/smb.conf <<END
[share]
comment = share
path = /data/share
writable = yes
END
useradd share
smbpasswd -a share
service smb restart
service smbd.service restart
chkconfig smb on
chkconfig --list|grep smb
systemctl restart smbd.service
systemctl enable smbd.service