配置Samba服务器:
yum -y install samba samba-client
vim /etc/samba/smb.conf
workgroup = STAFF
[smb1]
path = /smb1
3.mkdir /smb1
4.useradd harry; smbpasswd -a harry
5.systemctl enable smb nmb
systemctl start smb nmb
6.firewall --permanent --add-service=samba
7.chcon -R -t samba_share_t /smb1
8.semanage fcontext -a -t samba_share_t "/share(/.*)?"
9.restorecon -RFvv /share