Christian 'Dr. Disk' Hechelmann
1997-Oct-30 17:50 UTC
Can not start executables from Samba share
Hi! I have encountered the following oddity with NT 4.0 WS: SOmetimes I cann not start an executable on a Samba share. NT just pops up a requester saying "<PATH>\BLA.EXE was not found. This file is needed to execute <PATH>\BLA.EXE" (The message was translated from german, so could be a bit different in the US version!). <PATH> is the path to the executable, e.g. H:\Programme\PSP\PSP.EXE for Paintshop Pro. Using NTFIleMon gives the following log of actions for the Explorer (excerpt only): Explorer.exe IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Attributes:0000 Options:01000000 Explorer.exe FASTIO_QUERY_BASIC_INFO H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Attributes:0020 Explorer.exe IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Explorer.exe IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Explorer.exe IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Attributes:0000 Options:01000060 Explorer.exe FASTIO_QUERY_STANDARD_INFO H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE FAILURE Explorer.exe IRP_MJ_QUERY_INFORMATION H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS FileStandardInformation Explorer.exe IRP_MJ_READ H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Offset: 0 Length: 4096 Explorer.exe IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Explorer.exe IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Explorer.exe IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme SUCCESS Attributes:0000 Options:01000020 Explorer.exe IRP_MJ_QUERY_INFORMATION H:\ITLX01\PC_SOFT\Programme NOT SUPPORTED FileAlternateNameInformation Hmmm, is that critical? Explorer.exe IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme SUCCESS Explorer.exe IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme SUCCESS Explorer.exe IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Attributes:0000 Options:01000060 Explorer.exe FASTIO_QUERY_BASIC_INFO H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Attributes:0020 Explorer.exe IRP_MJ_SET_INFORMATION H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE ACCESS DENIED FileBasicInformation Why does NT want to modify these attributes? It seems the execution fails here. Explorer.exe IRP_MJ_READ H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Offset: 0 Length: 64 Explorer.exe IRP_MJ_READ H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Offset: 1024 Length: 64 Explorer.exe IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Explorer.exe IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP\PSPBRWSE.EXE SUCCESS Then I tried to run it from the shell. No go either... CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS Attributes:0000 Options:01000021 CMD.EXE IRP_MJ_DIRECTORY_CONTROL H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS FileBothDirectoryInformation CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS Attributes:0000 Options:01000021 CMD.EXE IRP_MJ_DIRECTORY_CONTROL H:\ITLX01\PC_SOFT\Programme\PSP NO SUCH FILE FileBothDirectoryInformation CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS Attributes:0000 Options:01000021 CMD.EXE IRP_MJ_DIRECTORY_CONTROL H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS FileBothDirectoryInformation CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP SUCCESS CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE SUCCESS Attributes:0000 Options:01000060 CMD.EXE FASTIO_QUERY_STANDARD_INFO H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE FAILURE CMD.EXE IRP_MJ_QUERY_INFORMATION H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE SUCCESS FileStandardInformation CMD.EXE IRP_MJ_READ H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE SUCCESS Offset: 0 Length: 4096 CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme\PSP\PSP.EXE SUCCESS CMD.EXE IRP_MJ_CREATE D:\WINNT\PROFILES\Administrator SUCCESS Attributes:0000 Options:01000020 CMD.EXE IRP_MJ_QUERY_INFORMATION D:\WINNT\PROFILES\Administrator SUCCESS FileAlternateNameInformation CMD.EXE IRP_MJ_CLEANUP D:\WINNT\PROFILES\Administrator SUCCESS CMD.EXE IRP_MJ_CLOSE D:\WINNT\PROFILES\Administrator SUCCESS CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme SUCCESS Attributes:0000 Options:01000020 CMD.EXE IRP_MJ_QUERY_INFORMATION H:\ITLX01\PC_SOFT\Programme NOT SUPPORTED FileAlternateNameInformation CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme SUCCESS CMD.EXE IRP_MJ_CREATE H:\ITLX01\PC_SOFT\Programme SUCCESS Attributes:0000 Options:01000020 CMD.EXE IRP_MJ_QUERY_INFORMATION H:\ITLX01\PC_SOFT\Programme NOT SUPPORTED FileAlternateNameInformation CMD.EXE IRP_MJ_CLEANUP H:\ITLX01\PC_SOFT\Programme SUCCESS CMD.EXE IRP_MJ_CLOSE H:\ITLX01\PC_SOFT\Programme SUCCESS In the Samba logfile (log level 5) apears the following: | 10/30/97 18:44:48 Transaction 1683 of length 42 | size=38 | smb_com=0x23 | smb_rcls=0 | smb_reh=0 | smb_err=0 | smb_flg=24 | smb_flg2=3 | smb_tid=33 | smb_pid=51966 | smb_uid=101 | smb_mid=42048 | smt_wct=1 | smb_vwv[0]=1 (0x1) | smb_bcc=0 | switch message SMBgetattrE (pid 8412) | Skipping become_user - already user | dos_mode: 33 Programme/PSP/PSP.EXE | is_in_path: Programme/PSP/PSP.EXE | is_in_path: no name list. | dos_mode returning a | 10/30/97 18:44:48 reply_getattrE fnum=1 cnum=33 | size=57 | smb_com=0x23 | smb_rcls=0 | smb_reh=0 | smb_err=0 | smb_flg=136 | smb_flg2=1 | smb_tid=33 | smb_pid=51966 | smb_uid=101 | smb_mid=42048 | smt_wct=11 | smb_vwv[0]=7780 (0x1E64) | smb_vwv[1]=6144 (0x1800) | smb_vwv[2]=9054 (0x235E) | smb_vwv[3]=38296 (0x9598) | smb_vwv[4]=7780 (0x1E64) | smb_vwv[5]=6144 (0x1800) | smb_vwv[6]=9888 (0x26A0) | smb_vwv[7]=13 (0xD) | smb_vwv[8]=10240 (0x2800) | smb_vwv[9]=13 (0xD) | smb_vwv[10]=32 (0x20) | smb_bcc=0 | 10/30/97 18:44:48 Transaction 1684 of length 54 | size=50 | smb_com=0x22 | smb_rcls=0 | smb_reh=0 | smb_err=0 | smb_flg=24 | smb_flg2=3 | smb_tid=33 | smb_pid=51966 | smb_uid=101 | smb_mid=42112 | smt_wct=7 | smb_vwv[0]=1 (0x1) | smb_vwv[1]=0 (0x0) | smb_vwv[2]=0 (0x0) | smb_vwv[3]=9054 (0x235E)smb_vwv[4]=38296 (0x9598) | smb_vwv[5]=0 (0x0) | smb_vwv[6]=0 (0x0) | smb_bcc=0 | switch message SMBsetattrE (pid 8412) | Skipping become_user - already user | 10/30/97 18:44:48 error packet at line 3605 cmd=34 (SMBsetattrE) eclass=1 ecode5 | error string = Operation not permitted This seems to be the reason why it doesn't work... | size=35 | smb_com=0x22 | smb_rcls=1 | smb_reh=0 | smb_err=5 | smb_flg=136 | smb_flg2=1 | smb_tid=33 | smb_pid=51966 | smb_uid=101 | smb_mid=42112 | smt_wct=0 | smb_bcc=0 | 10/30/97 18:44:48 Transaction 1685 of length 64 | size=60 | smb_com=0x2e | smb_rcls=0 | smb_reh=0 | smb_err=0 | smb_flg=24 | smb_flg2=0 | smb_tid=33 | smb_pid=51966 | smb_uid=101 | smb_mid=42176 | smt_wct=10 | smb_vwv[0]=255 (0xFF) | smb_vwv[1]=0 (0x0) | smb_vwv[2]=1 (0x1) | smb_vwv[3]=0 (0x0) | smb_vwv[4]=0 (0x0) | smb_vwv[5]=64 (0x40) | smb_vwv[6]=64 (0x40) | smb_vwv[7]=65535 (0xFFFF) | smb_vwv[8]=65535 (0xFFFF) | smb_vwv[9]=64 (0x40) | smb_bcc=0 | switch message SMBreadX (pid 8412) | Skipping become_user - already user The stange thing is that other executables work just fine (e.g. MSOffice, WinZip32, Netcape 3.01 Gold). Here's a list of the files on the share, as there might be a file permission problem. Parst of /etc/smb.conf are appended too. [drdisk@itlx01 pc]$ ls -l total 12 drwxrwsr-x 2 root samba 3072 Oct 10 00:50 DOS drwxrwsr-x 2 root samba 3072 Oct 17 18:24 DOS2 drwxrwsr-x 4 root samba 1024 Jul 31 19:33 GAMES drwxrwsr-x 17 root samba 1024 Jul 30 18:24 MSAPPS drwxrwsr-x 17 root samba 1024 Oct 17 15:37 MSOffice drwxrwsr-x 18 root samba 1024 Oct 25 08:33 Programme drwxrwsr-x 5 root samba 1024 Oct 14 19:30 UTIL drwxrwsr-x 4 root samba 1024 Oct 14 1996 Win95-ResourceKit [drdisk@itlx01 pc]$ ls -l Programme total 16 drwxrwsr-x 3 root samba 1024 Sep 30 01:58 ACDSee32 drwxrwsr-x 4 root samba 1024 Sep 30 01:52 Adobe drwxrwsr-x 2 root samba 1024 Sep 30 02:00 CuteFTP drwxrwsr-x 2 root samba 1024 Oct 25 08:59 DeskScan drwxrwsr-x 2 root samba 1024 Oct 25 08:23 Goldwave drwxrwsr-x 7 root samba 1024 Jul 11 14:47 HomeSite2 drwxrwsr-x 5 root samba 1024 Nov 18 1996 HotJava drwxrwsr-x 3 root samba 1024 Nov 18 1996 Internet Assistant drwxrwsr-x 6 root samba 1024 Nov 12 1996 JDK drwxrwsr-x 3 root samba 1024 Jul 30 12:02 Micrografx drwxrwsr-x 3 root samba 1024 Nov 12 1996 Netscape drwxrwsr-x 2 root samba 1024 Nov 12 1996 PFE drwxrwsr-x 2 root samba 1024 Oct 30 18:14 PSP drwxrwsr-x 4 root samba 1024 Oct 17 15:31 Plus! drwxrwsr-x 3 root samba 1024 Jul 24 14:17 WinXs drwxrwsr-x 2 root samba 1024 Sep 30 01:55 WinZip [drdisk@itlx01 pc]$ ls -l Programme/PSP/|more total 4128 -rwxrw-r-- 1 root samba 82192 Sep 23 1994 CDR.FLT -rwxrw-r-- 1 root samba 53024 Sep 23 1994 CGM.FLT -rwxrw-r-- 1 root samba 77856 Sep 23 1994 DRW.FLT -rwxrw-r-- 1 root samba 52288 Sep 23 1994 DXF.FLT -rwxrw-r-- 1 root samba 442 Mar 4 1995 FILE_ID.DIZ -rwxrw-r-- 1 root samba 7444 Mar 4 1995 GAMMA.TIF -rwxrw-r-- 1 root samba 37040 Sep 23 1994 GEM.FLT -rwxrw-r-- 1 root samba 50240 Sep 23 1994 HPGL.FLT -rwxrw-r-- 1 root samba 9088 Mar 4 1995 JCAP.DLL -rwxrw-r-- 1 root samba 98304 Mar 4 1995 JCD.DAT -rwxrw-r-- 1 root samba 52128 Mar 4 1995 JJPEG.DLL -rwxrw-r-- 1 root samba 9664 Mar 4 1995 JLEM1004.DLL -rwxrw-r-- 1 root samba 5824 Mar 4 1995 JSPIN.DLL -rwxrw-r-- 1 root samba 148480 Aug 18 1994 PCDLIB.DLL -rwxrw-r-- 1 root samba 13200 Sep 23 1994 PIC.FLT -rwxrw-r-- 1 root samba 861856 Mar 4 1995 PSP.EXE -rwxrw-r-x 1 root samba 16826 Oct 30 18:14 PSP.GID -rwxrw-r-- 1 root samba 1987450 Mar 4 1995 PSP.HLP -rwxrw-r-- 1 root samba 2060 Aug 23 18:27 PSP.INI -rwxrw-r-- 1 root samba 270800 Mar 4 1995 PSPBRWSE.EXE -rwxrw-r-- 1 root samba 293053 Mar 4 1995 PSPBRWSE.HLP -rwxrw-r-- 1 root samba 80 Mar 4 1995 PSPUD.FLT -rwxrw-r-- 1 root samba 55 Jun 6 12:12 PspBrwse.ini -rwxrw-r-- 1 root samba 11337 Mar 4 1995 README.TXT -rwxrw-r-- 1 root samba 5370 Mar 4 1995 VENDOR.DOC -rwxrw-r-- 1 root samba 35120 Sep 23 1994 WPG.FLT [drdisk@itlx01 pc]$ ---- smb.conf ----------------------------------------------------------- [global] workgroup = TI_DARAUM netbios name = ITLX01 comment = ITLX01 Linux Fileserver printing = bsd printcap name = /etc/printcap load printers = yes guest account = smbgast log file = /var/log/samba/log.smb.%m max log size = 256 ; case sensitive = yes short preserve case = yes preserve case = yes lock directory = /var/lock/samba locking = yes share modes = yes security = user ; password server = <NT-Server-Name> encrypt passwords = yes ; smb passwd file = /etc/smbpasswd socket options = TCP_NODELAY local master = yes os level = 33 domain master = yes preferred master = yes ; domain controller = <NT-Domain-Controller-SMBName> domain logons = yes logon script = %m.BAT logon path = \\%L\Profiles\%U wins support = yes wins proxy = yes character set = iso8859-1 client code page = 850 debug level = 3 getwd cache = yes revalidate = false dont descend = /proc,/dev invalid users = root read prediction = True username map = /var/samba/private/smb.name.map null passwords = true [...] [pc_soft] browsable = yes comment = PC Software path = /pub/disk2/samba/pc/ read list = @users @diplom @gast write list = drdisk @samba public = no volume = PC_SOFT create mask = 775 map archive = yes map hidden = yes map system = yes [...] ---- smb.conf ----------------------------------------------------------- Ciao Chris -- Home: chris@ds9.au.s.shuttle.de /\ Work: drdisk@itlx01.it.fht-esslingen.de FIDO: 2:246/1416.39 \/ Im Wiesengrund 15, D-71522 Backnang, 07191-980854 IRC: DrDisk \/ PGP Fingerprint 79AA6C63 84523279 3CA9B679 BDB74B17 ************************************************************ ***** ACHTUNG: Neue Mail-Adresse an der FHT Esslingen! ***** ************************************************************ |"The only reason Bill Gates is alive today is because the unabomber never| | used Windows 95" -- Anonymous |
Christian 'Dr. Disk' Hechelmann
1997-Nov-01 20:06 UTC
Can not start executables from Samba share
On Fri, 31 Oct 1997, Christian 'Dr. Disk' Hechelmann wrote:> I have encountered the following oddity with NT 4.0 WS: > > SOmetimes I cann not start an executable on a Samba share. NT just pops up > a requester saying "<PATH>\BLA.EXE was not found. This file is needed to > execute <PATH>\BLA.EXE" (The message was translated from german, so could be > a bit different in the US version!). <PATH> is the path to the executable, > e.g. H:\Programme\PSP\PSP.EXE for Paintshop Pro.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 Ciao Chris -- Home: chris@ds9.au.s.shuttle.de /\ Work: drdisk@itlx01.it.fht-esslingen.de FIDO: 2:246/1416.39 \/ Im Wiesengrund 15, D-71522 Backnang, 07191-980854 IRC: DrDisk \/ PGP Fingerprint 79AA6C63 84523279 3CA9B679 BDB74B17 ************************************************************ ***** ACHTUNG: Neue Mail-Adresse an der FHT Esslingen! ***** ************************************************************ |"The only reason Bill Gates is alive today is because the unabomber never| | used Windows 95" -- Anonymous |