歡迎您光臨本站 註冊首頁

為什麼共享目錄下有的文件看不到!

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

為什麼共享目錄下有的文件看不到!

環境:FC5,SAMBA是FC5自帶的
在伺服器上共享了/TMP文件夾,其中security = user
在WINXP上進入該文件夾后,發現有的文件沒有顯示出來,這是為什麼啊?
《解決方案》

把文件的許可權加上x
《解決方案》

我剛剛又看了下,有x許可權的文件也沒有顯示出來,
比如,在我共享的/tmp目錄下,有這樣的一個文件
-rwxrwxrwx 1 luzhiac root  287  0308   16:21   tt.txt

這個tt.txt就沒有顯示出來
《解決方案》

getfacl /tmp
把結果貼出來
《解決方案》

getfacl的結果如下:
# getfacl /tmp
getfacl: Removing leading '/' from absolute path names
# file: tmp
# owner: root
# group: root
user::rwx
group::rwx
other::rwx

tmp目錄下的文件和文件夾如下:
# cd /tmp
# ll
總計 2636
-rwxr--r-- 1 nobody  nobody       33 03-07 15:41 dd.txt
drwx------ 3 root    root       4096 03-12 07:01 gconfd-root
drwx------ 2 root    root       4096 03-12 07:01 keyring-8TKv3j
srwxr-xr-x 1 root    root          0 03-12 07:02 mapping-root
drwx------ 2 root    root       4096 03-12 07:03 orbit-root
srwxr-xr-x 1 root    root          0 03-05 00:14 OSL_PIPE_0_SingleOfficeIPC_dff687f33e731547a7abecfd29de83
srw------- 1 root    root          0 03-12 07:01 scim-helper-manager-socket-rootsrw------- 1 root    root          0 03-12 07:01 scim-panel-socket:0-root
srw------- 1 root    root          0 03-12 07:01 scim-socket-frontend-root
-rw-r--r-- 1 root    root    2606856 03-05 15:56 tmp.xpi
-rwxrwxrwx 1 luzhiac root        287 03-08 16:21 tt.txt
-rw-r--r-- 1 root    root          0 03-08 16:19 tt.txt~
drwx------ 2 root    root       4096 03-12 07:02 virtual-root.zYCZCZ
-rwxr--r-- 1 luzhiac luzhiac      20 03-08 20:39 WinRAR.rar

[ 本帖最後由 acpower 於 2007-3-12 10:11 編輯 ]
《解決方案》

在winxp下面看到的是:
目錄:gconfd-root  keyring-8TKv3j  orbit-root  virtual-roo.zYCZCZ
文件:dd.txt  WinRAR.rar

而文件:tt.txt就是看不到

[ 本帖最後由 acpower 於 2007-3-12 10:08 編輯 ]
《解決方案》

你可以這樣試一下
首先把數據備份好

chmod -R 777 /tmp
你再試試看,是否還是看不到?
《解決方案》

首先感謝lovegqin的回復!
我把smb.conf貼出來吧


   workgroup = WORKGROUP
   netbios name = linuxpc
   server string = Samba Server
   hosts allow = 192.168.1. 192.168.2. 127.

cups options = raw
log file = /var/log/samba/%m.log

   max log size = 50
security = user

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   dns proxy = no


   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S


   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes


   comment = Temporary file space
   path = /tmp
   read only = no
   writable = yes
   public = yes
   valid users = luzhiac
《解決方案》

我找到原因了。
linux啟動后,如果等待一段時間,再去訪問它,這樣就可以看到所有的文件。

再次感謝lovegqin的幫組,以後也請多多指教哦!

[ 本帖最後由 acpower 於 2007-3-12 19:43 編輯 ]

[火星人 ] 為什麼共享目錄下有的文件看不到!已經有340次圍觀

http://coctec.com/docs/service/show-post-40683.html