[Samba] DOS client cannot execute BATCH file on samba share

2006-08-31 Thread Roberto João Lopes Garcia
Hi

I just upgrade from 3.0.13 to samba 3.0.23b and after upgrade DOS Lanman 
Clients could not execute BATCH or EXE files stored on a samba share.

Client can see, type and copy the file but cannot execute ! It can execute the 
batch file copy to C:

I dig a little and found: 
http://lists.samba.org/archive/samba/1997-November/004734.html


Further investigation has revealed that it seems this error is caused by
the fact that smbd is unable to update the file access time, as the error
happens within file_utime(). What I don't get is: Why does WinZip run?
The files and directories have the same permissions... Strange


So I try to disable dos filetimes 

   dos filetimes = no

But did not work. 

I'm now seting up a server for test and see more debug messages.

Please, some one could help me?

Thank you

Roberto

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] DOS client cannot execute BATCH file on samba share

2006-08-31 Thread Miguel Da Silva - Servicio de Informát ica

Roberto João Lopes Garcia wrote:

Hi

I just upgrade from 3.0.13 to samba 3.0.23b and after upgrade DOS Lanman 
Clients could not execute BATCH or EXE files stored on a samba share.

Client can see, type and copy the file but cannot execute ! It can execute the 
batch file copy to C:

I dig a little and found: 
http://lists.samba.org/archive/samba/1997-November/004734.html


Further investigation has revealed that it seems this error is caused by
the fact that smbd is unable to update the file access time, as the error
happens within file_utime(). What I don't get is: Why does WinZip run?
The files and directories have the same permissions... Strange



So I try to disable dos filetimes 


   dos filetimes = no

But did not work. 


I'm now seting up a server for test and see more debug messages.

Please, some one could help me?

Thank you

Roberto



No error messages in the logs?

Greetings.

--
Miguel Da Silva.
Servicio de Informatica.
Facultad de Ciencias.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] DOS client cannot execute BATCH file on samba share

2006-08-31 Thread Roberto João Lopes Garcia
Here is the logs

I do not know samba insides and could not find any info that help-me solve the 
problem. 

Maybe some one can help

Please note: From DOS I can type, dir and copy the test Z:\T.BAT file but can 
not execute it.

I did the follow.

1 - Setup a single share and mount it on a PC DOS 6 MSLANMAN as Z:
2 - Create, from PC DOS, a single T.BAT file in  Z:\
3 - At the especified time run, from PC DOS, Z:\T.BAT and record the LOG FILE

DOS REPORT:  Invalid command or file-name

I did it for debug level 3, 6 and 10.

ERRO_DOS_D3 == log level 3. Comand start at [2006/08/31 15:37:40, 3]
ERRO_DOS_D6 == log level 6. Comand start at [2006/08/31 15:42:00, 6]
ERRP_DOS_D10 == log level 10. Comand start at [2006/08/31 15:31:00, 5]

Thank you

Roberto

at 11:44 31-08-2006, Miguel Da Silva - Servicio de Informát wrote:
Roberto João Lopes Garcia wrote:
Hi
I just upgrade from 3.0.13 to samba 3.0.23b and after upgrade DOS Lanman 
Clients could not execute BATCH or EXE files stored on a samba share.
Client can see, type and copy the file but cannot execute ! It can execute 
the batch file copy to C:
I dig a little and found: 
http://lists.samba.org/archive/samba/1997-November/004734.html

Further investigation has revealed that it seems this error is caused by
the fact that smbd is unable to update the file access time, as the error
happens within file_utime(). What I don't get is: Why does WinZip run?
The files and directories have the same permissions... Strange
So I try to disable dos filetimes 
   dos filetimes = no
But did not work. 
I'm now seting up a server for test and see more debug messages.
Please, some one could help me?
Thank you
Roberto

No error messages in the logs?

Greetings.

-- 
Miguel Da Silva.
Servicio de Informatica.
Facultad de Ciencias.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
[2006/08/31 15:37:40, 3] smbd/process.c:process_smb(1110)
  Transaction 17 of length 54
[2006/08/31 15:37:40, 3] smbd/process.c:switch_message(914)
  switch message SMBsearch (pid 26532) conn 0x9940f20
[2006/08/31 15:37:40, 3] smbd/dir.c:dptr_create(511)
  creating new dirptr 2 for path ., expect_close = 0
[2006/08/31 15:37:40, 3] smbd/dir.c:get_dir_entry(816)
  get_dir_entry mask=[T.BAT] found ./t.bat fname=t.bat
[2006/08/31 15:37:40, 3] smbd/process.c:process_smb(1110)
  Transaction 18 of length 69
[2006/08/31 15:37:40, 3] smbd/process.c:switch_message(914)
  switch message SMBsearch (pid 26532) conn 0x9940f20
[2006/08/31 15:37:40, 3] smbd/dir.c:dptr_fetch(696)
  fetching dirptr 2 for path . at offset 1145375056
[2006/08/31 15:37:40, 3] smbd/error.c:error_packet(162)
  error packet at smbd/reply.c(1245) cmd=129 (SMBsearch) eclass=1 ecode=18
[2006/08/31 15:41:17, 5] lib/util.c:show_msg(488)
  size=45
  smb_com=0x80
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=128
  smb_flg2=1
  smb_tid=1
  smb_pid=4331
  smb_uid=100
  smb_mid=888
  smt_wct=5
  smb_vwv[ 0]=65535 (0x)
  smb_vwv[ 1]=   64 (0x40)
  smb_vwv[ 2]=  512 (0x200)
  smb_vwv[ 3]=65535 (0x)
  smb_vwv[ 4]=0 (0x0)
  smb_bcc=0
[2006/08/31 15:42:00, 6] smbd/process.c:process_smb(1109)
  got message type 0x0 of len 0x32
[2006/08/31 15:42:00, 3] smbd/process.c:process_smb(1110)
  Transaction 7 of length 54
[2006/08/31 15:42:00, 5] lib/util.c:show_msg(478)
[2006/08/31 15:42:00, 5] lib/util.c:show_msg(488)
  size=50
  smb_com=0x81
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=0
  smb_flg2=1
  smb_tid=1
  smb_pid=4331
  smb_uid=100
  smb_mid=896
  smt_wct=2
  smb_vwv[ 0]=   47 (0x2F)
  smb_vwv[ 1]=   19 (0x13)
  smb_bcc=11
[2006/08/31 15:42:00, 3] smbd/process.c:switch_message(914)
  switch message SMBsearch (pid 26600) conn 0x8d88648
[2006/08/31 15:42:00, 4] smbd/uid.c:change_to_user(176)
  change_to_user: Skipping user change - already user
[2006/08/31 15:42:00, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file T.BAT
[2006/08/31 15:42:00, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = T.BAT, dirpath = , start = T.BAT
[2006/08/31 15:42:00, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (8d22d20:size6) T.BAT - t.bat
[2006/08/31 15:42:00, 5] smbd/statcache.c:stat_cache_add(140)
  stat_cache_add: Added entry (8d22d20:size6) T.BAT - t.bat
[2006/08/31 15:42:00, 5] smbd/filename.c:unix_convert(400)
  conversion finished T.BAT - t.bat
[2006/08/31 15:42:00, 5] smbd/dir.c:dptr_create(391)
  dptr_create dir=.
[2006/08/31 15:42:00, 3] smbd/dir.c:dptr_create(511)
  creating new dirptr 2 for path ., expect_close = 0
[2006/08/31 15:42:00, 4] smbd/reply.c:reply_search(1186)
  dptr_num is 2
[2006/08/31 15:42:00, 6] smbd/dir.c:get_dir_entry(775)
  readdir on dirptr 0x8d82b80 now at offset 0
[2006/08/31 15:42:00, 5] smbd/mangle_hash.c:name_map(615)
  name_map( ., need83 = True, cache83 = False)
[2006/08/31 15:42:00, 5] smbd/mangle_hash.c:name_map(641)
  name_map() == [.]
[2006/08/31 15:42:00, 6] 

Re: [Samba] DOS client cannot execute BATCH file on samba share

2006-08-31 Thread Jeremy Allison
On Thu, Aug 31, 2006 at 04:21:52PM -0300, Roberto João Lopes Garcia wrote:
 Here is the logs
 
 I do not know samba insides and could not find any info that help-me solve 
 the problem. 
 
 Maybe some one can help
 
 Please note: From DOS I can type, dir and copy the test Z:\T.BAT file but can 
 not execute it.
 
 I did the follow.
 
 1 - Setup a single share and mount it on a PC DOS 6 MSLANMAN as Z:
 2 - Create, from PC DOS, a single T.BAT file in  Z:\
 3 - At the especified time run, from PC DOS, Z:\T.BAT and record the LOG FILE
 
 DOS REPORT:  Invalid command or file-name
 
 I did it for debug level 3, 6 and 10.
 
 ERRO_DOS_D3 == log level 3. Comand start at [2006/08/31 15:37:40, 3]
 ERRO_DOS_D6 == log level 6. Comand start at [2006/08/31 15:42:00, 6]
 ERRP_DOS_D10 == log level 10. Comand start at [2006/08/31 15:31:00, 5]

Please log this as a bug report with bugzilla.samba.org, I don't
need anything bug the debug level 10 log please - plus the smb.conf
would also help.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba