首页 > 其他 > 详细

samba 安装配置 匿名用户可读写

时间:2019-11-29 15:06:11      阅读:224      评论:0      收藏:0      [点我收藏+]

#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  
  
[python_code]  
path  = /python_code
public = yes
writeable = yes
browsable = yes
create mask  = 0777
directory mask = 0777
EOF

systemctl restart smb

 

samba 安装配置 匿名用户可读写

原文:https://www.cnblogs.com/blog-lhong/p/11957459.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!