#关闭防火墙:stop暂时关闭,disable永久关闭
setenforce 0 sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config systemctl stop firewalld systemctl disable firewalld systemctl stop smb pdbedit -x -u y00 pdbedit -a -u y00 chown -Rf y00:y00 /home/y00 systemctl start smb systemctl enable smb systemctl status smb
#开启防火墙samba无法映射?
systemctl start firewalld
systemctl enable firewalld
systemctl status firewalld