Samba服务器 安装
yum -y install samba cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
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