免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3835 | 回复: 4
打印 上一主题 下一主题

[samba] 【求助】RHEL5下的samba服务器非home下不能访问!【已解决】 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-20 19:37 |只看该作者 |倒序浏览
系统平台:RHEL5.2
配置文件:
[global]
        workgroup = WORKGROUP
        server string = Samba
        netbios name = rhel5
        security = share
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
;        valid users = %S
;        valid users = MYDOMAIN\%S

[mov1]
    comment = mov1
    path = /home/marsaber
    public = yes
    browseable = yes
    writable = no
    write list = @marsaber
[mov2]
    comment = mov2
    path = /mov
    public = yes
    browseable = yes
    writable = yes
    write list = @marsaber

SELinux:
[root@rhel5 samba]# sestatus -b |grep "samba"
samba_domain_controller                  off
samba_enable_home_dirs                 on
samba_export_all_ro                         off
samba_export_all_rw                        off
samba_share_nfs                              off
use_samba_home_dirs                      off


/home/marsaber(marsaber用户、marsaber组)和/mov(root用户、root组)的权限都是777。
mov1是可以匿名访问的,marsaber可读、可写、可删除;
mov2则不可以,为什么?请指点指点。
非常感谢!

[ 本帖最后由 marsaber 于 2008-11-21 11:11 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-11-20 19:42 |只看该作者
windows访问mov2,提示无权访问。

论坛徽章:
0
3 [报告]
发表于 2008-11-20 20:16 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2008-11-21 09:48 |只看该作者
原帖由 lovegqin 于 2008-11-20 20:16 发表
关掉SELinux


为什么非要关闭SELinux?

论坛徽章:
0
5 [报告]
发表于 2008-11-21 11:11 |只看该作者

搞定!
不用关SELinux也可以了!
chcon -t samba_share_t /path

[ 本帖最后由 marsaber 于 2008-11-21 11:28 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP