Remove any restrictions on the shares. Like valid user and that sort of
thing.
Jason Waters
-----Original Message-----
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday,
May 21, 2008 10:08 AM
To: Rubin Bennett
Cc: Jason Waters; [email protected]
Subject: Re: [Samba] Existing files don't show up in share, new files do
I'm slightly closer to finding the cause of this problem. I set the
smbd log level to 7 and found the following entries when trying to
list the contents of the share:
[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
call_trans2findfirst: dirtype = 16, maxentries = 1366,
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level =
0x104, max_data_bytes = 16644
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
unix_convert called on file "*"
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT]
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT]
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT]
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat
[./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
closing dptr key 256
The "Permission denied"s correspond exactly to the files and
directories that are missing. As you can see, it somehow can't stat
(whatever that is) the existing files, but it can the new files.
Which is bizarre, since their permissions are the same. We need a
real Samba internals guru. What exactly is it trying to stat, and how
is it possible for that to succeed for some files but fail for others
while having the same permissions?
Kind regards,
Pepijn Schmitz