1.添加samba服务到防火墙策略中

 firewall-cmd --add-service samba --permanent

2.重启防火墙

firewall-cmd --reload

3.查看samba服务是否添加到防火墙中:

firewall-cmd --list-all|grep samba

4.关闭selinux

vim /etc/sysconfig/selinux

只修改

SELINUX=disabled

 

5. 

setenforce 0

6.

getenforce

7.

systemctl start smb
systemctl enable smb
systemctl restart smb
systemctl status smb

8.成功

 

Logo

更多推荐