免费注册 查看新帖 |

Chinaunix

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

[samba] Windows无法访问Share模式的Samba [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-24 09:43 |只看该作者 |倒序浏览
[root@studio01 ~]# cat /etc/samba/smb.conf
[global]
        workgroup = seakingmovies
        server string = linux share

        netbios name = redhat01

;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;       hosts allow = 127. 192.168.12. 192.168.13.
        log file = /var/log/samba/%m.log
        max log size = 50

        security = share
        passdb backend = tdbsam

;       load printers = yes
;       cups options = raw
;       encrypt passwords = yes
;       guest ok = yes
;       guest account = root

;       printcap name = /etc/printcap
;       printcap name = lpstat
;       printing = cups

[share]
        path = /root/share
        writeable = yes
        browseable = yes
        guest ok = yes

能够看到共享的文件夹share,点击时直接提示没有权限访问

论坛徽章:
0
2 [报告]
发表于 2008-12-24 09:48 |只看该作者
Selinux已经关闭,在log文件中发现错误如下:
[2008/12/24 09:40:14, 0] smbd/service.c:make_connection_snum(1003)
  '/root/share' does not exist or permission denied when connecting to [share] Error was Permission denied
[2008/12/24 09:40:14, 0] smbd/service.c:make_connection_snum(1003)
  '/root/share' does not exist or permission denied when connecting to [share] Error was Permission denied
[2008/12/24 09:40:14, 0] smbd/service.c:make_connection_snum(1003)
  '/root/share' does not exist or permission denied when connecting to [share] Error was Permission denied

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

论坛徽章:
0
4 [报告]
发表于 2008-12-24 19:45 |只看该作者
谢谢,我换了其他的目录,可以访问,现在有一个新的问题:

[root@studio01 samba]# cat smb.conf
[global]
        workgroup = seakingmovies
        server string = linux share

        netbios name = redhat01

;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
        hosts allow = 127. 192.168.1. 10.10.0.
        log file = /var/log/samba/%m.log
        max log size = 50

        security = share
        passdb backend = tdbsam
        guest account = nobody
;       load printers = yes
;       cups options = raw
;       encrypt passwords = yes
;       guest ok = yes
;       guest account = root

;       printcap name = /etc/printcap
;       printcap name = lpstat
;       printing = cups

[project]
        comment=share project
        path =/mnt/project/MAS_4DFilm_Finder
        writeable = yes
        browseable = yes
        Guest ok = yes

[temp]
        comment=temp files
        path = /mnt/temp
        writeable = yes
        browseable = yes
        Guest ok = yes
[root@studio01 samba]#

这之后,Project部分可以读写,但temp部分只有读的权限,不能写。二者的配置完全一样,为什么会这样子呢?

[ 本帖最后由 qinershi 于 2008-12-24 19:52 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-12-24 20:26 |只看该作者
找到原因了,忘了用chown给用户授权
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP