Win访问Linux samba拒绝访问

来源:互联网 发布:vb贪吃蛇代码 编辑:程序博客网 时间:2024/06/06 01:24

今天发现win7通过samba登录posp系统,输入samba用户和密码后提示如下


打开/etc/samba/smb.conf 相关部分如下

[posp]
    comment = Users profiles
    path = /home/posp/posp
    valid users = posp
    browseable = yes
    #guest ok = no
    writable = yes
    #printable = yes
    security = yes


切换到root用户

执行

#service smb restart//成功

#service nmb restart//成功


但是还是出现上面的问题。


通过查阅网上的文档,发现是由于selinux模式引起的


关闭selinux模式#setenforce 0,再映射网络驱动器,成功。


打开selinux模式#setenforce 1

0 0