Brett Johnson
2003-Dec-07 03:50 UTC
[Samba] Single File Delete/Directory Listing on Windows ME
Hi; I'm having a really odd problem with some Windows ME stations connected to a Samba server. From a command prompt on the ME stations, I do the following: dir *.* This works as expected, all the files in the directory are displayed. I then do: dir test.txt And I get: General failure reading drive G Abort, Retry, Fail. The directory contains the file, and the file shows up in a full listing, but I can't do a listing of a single file. Also affects the del command. I can delete any number of files using wildcards, but I can't delete just one file. From Explorer, I can delete a single file, but not from the command prompt. It works fine on my Windows 2000 stations. I've tried 3 different Fedora Servers running Samba 3.0015 and many different Windows ME stations, and they all have the same problem. Servers running Redhat 9 and older Samba versions appear to work fine. I've tried everything I can think of in the samba config files and nothing seems to work. Any help will be greatly appreciated. Thanks in advance Brett
Brett Johnson
2003-Dec-07 19:48 UTC
[Samba] Re: Single File Delete/Directory Listing on Windows ME
Hi Again I figured a log snipping for this error would probably be useful. This is the log results after doing "dir timer.bat" from with the g:\gkn direcotry. [2003/12/07 11:36:51, 5] lib/util.c:show_msg(478) [2003/12/07 11:36:51, 5] lib/util.c:show_msg(488) size=83 smb_com=0x81 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=51265 smb_tid=1 smb_pid=3350 smb_uid=100 smb_mid=21889 smt_wct=1 smb_vwv[ 0]= 1 (0x1) smb_bcc=46 [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(407) write_socket(20,87) [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(410) write_socket(20,87) wrote 87 [2003/12/07 11:36:51, 6] smbd/process.c:process_smb(889) got message type 0x0 of len 0x49 [2003/12/07 11:36:51, 3] smbd/process.c:process_smb(890) Transaction 7 of length 77 [2003/12/07 11:36:51, 5] lib/util.c:show_msg(478) [2003/12/07 11:36:51, 5] lib/util.c:show_msg(488) size=73 smb_com=0x81 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=32768 smb_tid=1 smb_pid=3350 smb_uid=100 smb_mid=22017 smt_wct=2 smb_vwv[ 0]= 20 (0x14) smb_vwv[ 1]= 0 (0x0) smb_bcc=34 [2003/12/07 11:36:51, 3] smbd/process.c:switch_message(685) switch message SMBsearch (pid 13904) [2003/12/07 11:36:51, 4] smbd/uid.c:change_to_user(122) change_to_user: Skipping user change - already user [2003/12/07 11:36:51, 5] smbd/filename.c:unix_convert(114) unix_convert called on file "\GKN\TIMER"BAT" [2003/12/07 11:36:51, 3] lib/util.c:unix_clean_name(602) unix_clean_name [/GKN/TIMER"BAT] [2003/12/07 11:36:51, 5] smbd/filename.c:unix_convert(188) unix_convert begin: name = GKN/TIMER"BAT, dirpath = GKN, start = TIMER"BAT [2003/12/07 11:36:51, 5] smbd/filename.c:unix_convert(323) New file TIMER"BAT [2003/12/07 11:36:51, 3] lib/util.c:unix_clean_name(602) unix_clean_name [GKN/TIMER"BAT] [2003/12/07 11:36:51, 5] smbd/dir.c:start_dir(334) start_dir dir=GKN [2003/12/07 11:36:51, 3] lib/util.c:unix_clean_name(602) unix_clean_name [GKN] [2003/12/07 11:36:51, 3] smbd/dir.c:dptr_create(491) creating new dirptr 2 for path GKN, expect_close = 0 [2003/12/07 11:36:51, 4] smbd/reply.c:reply_search(740) dptr_num is 2 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 1 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 2 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 3 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 4 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 5 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 6 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 7 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 8 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 9 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 10 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 11 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 12 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 13 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 14 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 15 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 16 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 17 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 18 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 19 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 20 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 21 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 22 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 23 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 24 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 25 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 26 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 27 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 28 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 29 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 30 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 31 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 32 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 33 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 34 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 35 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 36 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 37 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 38 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 39 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 40 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 41 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 42 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 43 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 44 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 45 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 46 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 47 [2003/12/07 11:36:51, 3] smbd/dir.c:get_dir_entry(661) get_dir_entry mask=[TIMER"BAT] found GKN/TIMER.BAT fname=TIMER.BAT [2003/12/07 11:36:51, 6] smbd/dir.c:dptr_fill(511) fill on key 2 dirptr 0x9acb090 now at 47 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 48 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 49 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 50 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 51 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 52 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 53 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 54 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 55 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 56 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 57 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 58 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 59 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 60 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 61 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 62 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 63 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 64 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 65 [2003/12/07 11:36:51, 6] smbd/dir.c:get_dir_entry(618) readdir on dirptr 0x9acb090 now at offset 65 [2003/12/07 11:36:51, 4] smbd/reply.c:reply_search(814) SMBsearch mask=TIMER"BAT path=GKN dtype=0 nument=1 of 20 [2003/12/07 11:36:51, 5] lib/util.c:show_msg(478) [2003/12/07 11:36:51, 5] lib/util.c:show_msg(488) size=83 smb_com=0x81 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=128 smb_flg2=51265 smb_tid=1 smb_pid=3350 smb_uid=100 smb_mid=22017 smt_wct=1 smb_vwv[ 0]= 1 (0x1) smb_bcc=46 [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(407) write_socket(20,87) [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(410) write_socket(20,87) wrote 87 [2003/12/07 11:36:51, 6] smbd/process.c:process_smb(889) got message type 0x0 of len 0x42 [2003/12/07 11:36:51, 3] smbd/process.c:process_smb(890) Transaction 8 of length 70 [2003/12/07 11:36:51, 5] lib/util.c:show_msg(478) [2003/12/07 11:36:51, 5] lib/util.c:show_msg(488) size=66 smb_com=0x10 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=0 smb_flg2=32768 smb_tid=1 smb_pid=3350 smb_uid=100 smb_mid=22145 smt_wct=0 smb_bcc=31 [2003/12/07 11:36:51, 3] smbd/process.c:switch_message(685) switch message SMBchkpth (pid 13904) [2003/12/07 11:36:51, 4] smbd/uid.c:change_to_user(122) change_to_user: Skipping user change - already user [2003/12/07 11:36:51, 5] smbd/filename.c:unix_convert(114) unix_convert called on file "\GKN\TIMER.BAT" [2003/12/07 11:36:51, 3] lib/util.c:unix_clean_name(602) unix_clean_name [/GKN/TIMER.BAT] [2003/12/07 11:36:51, 5] smbd/statcache.c:stat_cache_add(178) stat_cache_add: Added entry GKN/TIMER.BAT -> GKN/TIMER.BAT [2003/12/07 11:36:51, 5] smbd/filename.c:unix_convert(183) conversion finished GKN/TIMER.BAT -> GKN/TIMER.BAT [2003/12/07 11:36:51, 3] lib/util.c:unix_clean_name(602) unix_clean_name [GKN/TIMER.BAT] [2003/12/07 11:36:51, 3] smbd/error.c:error_packet(94) error string = Not a directory [2003/12/07 11:36:51, 3] smbd/error.c:error_packet(129) error packet at smbd/reply.c(443) cmd=16 (SMBchkpth) eclass=1 ecode=267 [2003/12/07 11:36:51, 5] lib/util.c:show_msg(478) [2003/12/07 11:36:51, 5] lib/util.c:show_msg(488) size=35 smb_com=0x10 smb_rcls=1 smb_reh=0 smb_err=267 smb_flg=128 smb_flg2=34817 smb_tid=1 smb_pid=3350 smb_uid=100 smb_mid=22145 smt_wct=0 smb_bcc=0 [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(407) write_socket(20,39) [2003/12/07 11:36:51, 6] lib/util_sock.c:write_socket(410) write_socket(20,39) wrote 39 [2003/12/07 11:37:51, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2003/12/07 11:37:51, 5] auth/auth_util.c:debug_nt_user_token(486) NT user token: (NULL) [2003/12/07 11:37:51, 5] auth/auth_util.c:debug_unix_user_token(505) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2003/12/07 11:37:51, 5] smbd/uid.c:change_to_root_user(218) change_to_root_user: now uid=(0,0) gid=(0,0) [2003/12/07 11:38:51, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2003/12/07 11:38:51, 5] auth/auth_util.c:debug_nt_user_token(486) NT user token: (NULL) [2003/12/07 11:38:51, 5] auth/auth_util.c:debug_unix_user_token(505) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2003/12/07 11:38:51, 5] smbd/uid.c:change_to_root_user(218) change_to_root_user: now uid=(0,0) gid=(0,0) -- Brett
Jeremy Allison
2003-Dec-07 19:52 UTC
[Samba] Single File Delete/Directory Listing on Windows ME
On Sat, Dec 06, 2003 at 03:35:52PM -0800, Brett Johnson wrote:> > General failure reading drive G > Abort, Retry, Fail. > > The directory contains the file, and the file shows up in a full listing, > but I can't do a listing of a single file. Also affects the del command. I > can delete any number of files using wildcards, but I can't delete just one > file. From Explorer, I can delete a single file, but not from the command > prompt. > > It works fine on my Windows 2000 stations. I've tried 3 different Fedora > Servers running Samba 3.0015 and many different Windows ME stations, and > they all have the same problem. Servers running Redhat 9 and older Samba > versions appear to work fine. I've tried everything I can think of in the > samba config files and nothing seems to work. Any help will be greatly > appreciated.Is this the 3.0.0 release version of Samba ? If so this is a bug I fixed for 3.0.1. Please download and try the Samba 3.0.1rc1 that Jerry released recently. Jeremy.