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

 

posted @ 2017-07-20 22:55  chenzechao  阅读(132)  评论(0编辑  收藏  举报