samba 安装配置 匿名用户可读写
#samba 安装配置 匿名用户可读写
###关闭 iptables SELINUX systemctl stop firewalld systemctl disable firewalld sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config setenforce 0 ##安装配置 samba yum install -y samba systemctl enable smb cat >/etc/samba/smb.conf <<EOF [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = $(hostname) security = user map to guest = bad user dns proxy = no
min protocol = SMB2
max protocol = SMB2
[python_code] path = /python_code public = yes writeable = yes browsable = yes create mask = 0777 directory mask = 0777 EOF systemctl restart smb