LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1577|回复: 17

大哥们,求求你们了,看看吧!samba能写但不显视本地文件????

[复制链接]
发表于 2005-9-29 10:33:55 | 显示全部楼层 |阅读模式
我用 的FC4 samba验证模式是用户
共享属性是可读可写,共享目录权限是777
但现在的问题是,用指定的用户在Windws xp上可以登录,并且可以新建文件夹和文件
但只能看到共享目录里本来就有的文件夹和通过winXP新建的文件(文件夹),看不到共享目录里本来就有的文件(权限777)!!!
这是为什么呢??
谢谢!!!
发表于 2005-9-29 16:45:47 | 显示全部楼层
smb.conf萜出来看看先
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-29 19:22:27 | 显示全部楼层
smb.conf内容:
#======================= Global Settings =====================================
[global]


        workgroup = mygroup
        dos charset = cp936
        display charset = utf8
      server string = Samba Server
      hosts allow = 192.168.0.
      printcap name = /etc/printcap
        load printers = yes
  ;   printing = lprng
      log file = /var/log/samba/%m.log
        max log size = 50

;        security = user
;        guest account = nobody
;        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        username map = /etc/samba/smbusers
;        security = user
;        encrypt passwords = yes
;        guest ok = no
;        guest account = nobody
;        guest ok = no

[tmp]
        comment = tmp
        path = /tmp
; read only=no
        browseable = yes
;        writeable = yes
;public=yes
        valid users = mhp
        writeable = yes
;        writeable = no
回复 支持 反对

使用道具 举报

发表于 2005-9-30 09:54:09 | 显示全部楼层
那你ls -l看看原来文件的属性是什么.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-30 23:50:04 | 显示全部楼层
原文件权限:
-rwxrwxrwx  1 gongxing  gongxiang  9056256  6月  2 12:53 感动.mp3
应该不是这儿的 问题吧 ???
是不是系统哪儿有问题,导致这样的结果呢??????????/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-1 16:24:22 | 显示全部楼层
我把验证模式设成了共享,容许所有用户都可以访问,其他一切正常,但还是看不到本来就有的文件!!!!!!!
你们没有遇到这种情况吗????????
回复 支持 反对

使用道具 举报

发表于 2005-10-1 23:27:48 | 显示全部楼层
是mhp这个帐号出现的问题还是gongxiang等所有帐号都一样,看你的模式是 user ,valid user只有mhp,其他用户能进入共享目录吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-2 09:42:32 | 显示全部楼层
所有账号都一样,设成共享验证也一样!
是不是还有其他的权限或者是策略在控制呢????
回复 支持 反对

使用道具 举报

发表于 2005-10-2 13:25:04 | 显示全部楼层
from a Linux box or the samba server itself:

  1. smbclient //server/share -U user
复制代码

this will let the user logon to the share, and then ls to list the contents and see what you get.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-2 15:22:54 | 显示全部楼层
楼上的是命令还是smb.conf里的代码?????
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表