samba拒绝访问 samba不能创建文件

技术分享 2017-02-24

关闭selinux就可以解决问题,关闭方法: 编辑 /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled #把这里改成disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!