[Samba] Unable to run application from share

Rune Tønnesen rune.tonnesen at bordings-friskole.dk
Fri Apr 21 23:58:53 GMT 2006


Chris Boyd skrev:
> OOps
>
> Here's smb.conf and log.smbd
>
> [global]
>         printcap name = cups
>         cups options = raw
>         map to guest = Bad User
> #       include = /etc/samba/dhcp.conf
>         logon path = \\%L\profiles\.msprofile
>         logon home = \\%L\%U\.9xprofile
>         logon drive = P:
>         security = user
>         restrict anonymous = no
>         domain master = Yes
>         preferred master = Yes
> #       idmap uid = 15000-20000
> #       idmap gid = 15000-20000
>         log level = 3
>         netbios name = UCD01
>         max protocol = NT
>         ldap ssl = No
>         server signing = Auto
>         workgroup = UCD
>         add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
>         passdb backend = tdbsam
>         domain logons = Yes
>         local master = Yes
>         os level = 65
>         kernel oplocks = False
>         posix locking = No
> #       locking = No
> #       oplocks = False
> #       level2 oplocks = False
>
> [protel]
>         comment = Protel Data Folder
>         path = /protel
> #       kernel oplocks = No
>         locking = No
>         oplocks = False
>         level2 oplocks = False
> #       acl check permissions = No
>         read only = no
> [share]
>         comment = Shared Folder
>         path = /share
>         drive = S:
>         read only = no
>
> [homes]
>         comment = Home Directories
> valid users = %S
>         browseable = No
>         read only = No
>         inherit acls = Yes
>
> [profiles]
>         comment = Network Profiles Service
> #       path = /var/lib/samba/profiles
>         path = %H
>         read only = No
>         store dos attributes = Yes
>         create mask = 0600
>         directory mask = 0700
>
> [users]
>         comment = All users
>         path = /home
>         read only = No
>         inherit acls = Yes
>         veto files = /aquota.user/groups/shares/
>
> [groups]
>         comment = All groups
>         path = /home/groups
>         read only = No
>         inherit acls = Yes
>
> [printers]
>         comment = All Printers
>         path = /var/tmp
>         printable = Yes
>         create mask = 0600
>         browseable = No
>
> [print$]
>         comment = Printer Drivers
>         path = /var/lib/samba/drivers
>         write list = @ntadmin root
>         force group = ntadmin
>         create mask = 0664
>         directory mask = 0775
>
> [netlogon]
>         comment = Network Logon Service
>         path = /var/lib/samba/netlogon
> #       path = /netlogon
> #       preexec = /var/lib/samba/netlogon
>         login script = %U.bat
>         write list = root
>         admin users = root
>
>
> Here's a partial log.smbd: 
>
> [2006/04/11 17:11:38, 3] smbd/service.c:make_connection_snum(477)
>   Connect path is '/protel' for service [protel]
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(250)
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(251)
>   se_access_check: user sid is S-1-5-21-1439502771-4027299746-1242570080-3006
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-513
>   se_access_check: also S-1-1-0
>   se_access_check: also S-1-5-2
>   se_access_check: also S-1-5-11
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1033
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1067
> [2006/04/11 17:11:38, 3] smbd/vfs.c:vfs_init_default(215)
>   Initialising default vfs hooks
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(250)
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(251)
>   se_access_check: user sid is S-1-5-21-1439502771-4027299746-1242570080-3006
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-513
>   se_access_check: also S-1-1-0
>   se_access_check: also S-1-5-2
>   se_access_check: also S-1-5-11
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1033
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1067
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(250)
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(251)
>   se_access_check: user sid is S-1-5-21-1439502771-4027299746-1242570080-3006
> se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-513
>   se_access_check: also S-1-1-0
>   se_access_check: also S-1-5-2
>   se_access_check: also S-1-5-11
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1033
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1067
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(250)
> [2006/04/11 17:11:38, 3] lib/util_seaccess.c:se_access_check(251)
>   se_access_check: user sid is S-1-5-21-1439502771-4027299746-1242570080-3006
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-513
>   se_access_check: also S-1-1-0
>   se_access_check: also S-1-5-2
>   se_access_check: also S-1-5-11
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1033
>   se_access_check: also S-1-5-21-1439502771-4027299746-1242570080-1067
> [2006/04/11 17:11:38, 3] smbd/sec_ctx.c:set_sec_ctx(288)
> setting sec ctx (1003, 100) - sec_ctx_stack_ndx = 0
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2820)
>   call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = -1) level=1004 call=5 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 5 of length 130
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
> switch message SMBntcreateX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/GLOBAL.INI) returning 0744
> [2006/04/11 17:11:38, 2] smbd/open.c:open_file(372)
>   robin opened file UCD_LIVE/GLOBAL.INI read=Yes write=No (numopen=1)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 6 of length 76
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBtrans2 (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2760)
>   call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1006
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = 8400) level=1006 call=7 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 7 of length 76
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBtrans2 (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2760)
>   call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1005
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = 8400) level=1005 call=7 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 8 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8400 max=4096 nread=103
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 9 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8400 max=3993 nread=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 10 of length 45
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBclose (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:reply_close(3247)
>   close fd=28 fnum=8400 (numopen=1)
> [2006/04/11 17:11:38, 2] smbd/close.c:close_normal_file(270)
>   robin closed file UCD_LIVE/GLOBAL.INI (numopen=0)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 11 of length 130
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>  switch message SMBtrans2 (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2760)
>   call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1006
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = 8400) level=1006 call=7 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 7 of length 76
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBtrans2 (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2760)
>   call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1005
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = 8400) level=1005 call=7 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 8 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8400 max=4096 nread=103
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 9 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8400 max=3993 nread=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 10 of length 45
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBclose (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:reply_close(3247)
>   close fd=28 fnum=8400 (numopen=1)
> [2006/04/11 17:11:38, 2] smbd/close.c:close_normal_file(270)
>   robin closed file UCD_LIVE/GLOBAL.INI (numopen=0)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 11 of length 130
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBntcreateX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/GLOBAL.INI) returning 0744
> [2006/04/11 17:11:38, 2] smbd/open.c:open_file(372)
>   robin opened file UCD_LIVE/GLOBAL.INI read=Yes write=No (numopen=1)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 12 of length 45
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
> switch message SMBclose (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:reply_close(3247)
>   close fd=28 fnum=8401 (numopen=1)
> [2006/04/11 17:11:38, 2] smbd/close.c:close_normal_file(270)
>   robin closed file UCD_LIVE/GLOBAL.INI (numopen=0)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 13 of length 130
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
> switch message SMBntcreateX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/GLOBAL.INI) returning 0744
> [2006/04/11 17:11:38, 2] smbd/open.c:open_file(372)
>   robin opened file UCD_LIVE/GLOBAL.INI read=Yes write=No (numopen=1)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 14 of length 76
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBtrans2 (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2760)
>   call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1005
> [2006/04/11 17:11:38, 3] smbd/trans2.c:call_trans2qfilepathinfo(2871)
>   call_trans2qfilepathinfo UCD_LIVE/GLOBAL.INI (fnum = 8402) level=1005 call=7 total_data=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 15 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8402 max=4096 nread=103
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 16 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBreadX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:send_file_readX(2585)
>   send_file_readX fnum=8402 max=3993 nread=0
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 17 of length 45
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBclose (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/reply.c:reply_close(3247)
>   close fd=28 fnum=8402 (numopen=1)
> [2006/04/11 17:11:38, 2] smbd/close.c:close_normal_file(270)
>   robin closed file UCD_LIVE/GLOBAL.INI (numopen=0)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 18 of length 130
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBntcreateX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/GLOBAL.INI) returning 0744
> [2006/04/11 17:11:38, 2] smbd/open.c:open_file(372)
>   robin opened file UCD_LIVE/GLOBAL.INI read=Yes write=No (numopen=1)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 19 of length 63
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
> [2006/04/11 17:11:38, 3] smbd/reply.c:reply_close(3247)
>   close fd=28 fnum=8403 (numopen=1)
> [2006/04/11 17:11:38, 2] smbd/close.c:close_normal_file(270)
>   robin closed file UCD_LIVE/GLOBAL.INI (numopen=0)
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 23 of length 126
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/test.pro) returning 0744
> [2006/04/11 17:11:38, 3] smbd/error.c:error_packet(147)
>   error packet at smbd/trans2.c(2590) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_NAME_NOT_FOUND
> [2006/04/11 17:11:38, 3] smbd/process.c:process_smb(1114)
>   Transaction 24 of length 126
> [2006/04/11 17:11:38, 3] smbd/process.c:switch_message(900)
>   switch message SMBntcreateX (pid 2970) conn 0x803a5248
> [2006/04/11 17:11:38, 3] smbd/dosmode.c:unix_mode(121)
>   unix_mode(UCD_LIVE/test.pro) returning 0744
> [2006/04/11 17:11:38, 3] smbd/open.c:open_file(296)
>   Error opening file UCD_LIVE/test.pro (Permission denied) (local_flags=66) (flags=66)
> [2006/04/11 17:11:38, 3] smbd/open.c:open_file(296)
>   Error opening file UCD_LIVE/test.pro (No such file or directory) (local_flags=0) (flags=0)
> [2006/04/11 17:11:38, 3] smbd/error.c:error_packet(147)
>   error packet at smbd/trans2.c(2590) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_NAME_NOT_FOUND
> [2006/04/11 17:12:38, 3] smbd/sec_ctx.c:set_sec_ctx(288)
>
> Chris Boyd
> Systems Engineer
> USIT 
> 19-21 Aston Quay
> Dublin 2
> Ireland
>
> Tel: +353 1 6021670
> Fax: +353 1 6771602
> www.usit.ie
>   
>>>> "Gerald (Jerry) Carter" <jerry at samba.org> 04/11/06 1:35 PM >>>
>>>>         
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Chris Boyd wrote:
>
>   
>> The server side was on a novell server and 
>> the clients were using NT.  BTW running opensuse
>> 10 with Samba-3.0.20-4 and XP  Pro as clients.
>>     
>
> Chris,
>
> If you want to nkow if it's a Samba issue or app
> issue, the true test is to try to run it from a
> windows file server.  You can use another WinXP prof
> box for this.  Doesn't have to be win2003 or one of
> the server grade OS's.
>
>
>
>
> cheers, jerry
> =====================================================================
> I live in a Reply-to-All world.               -----------------------
> Samba                                    ------- http://www.samba.org
> Centeris                         -----------  http://www.centeris.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEO6KhIR7qMdg1EfYRAvSEAJ48ZmU6sFsReWLw6ybQjSCBP/MYKACgyZEW
> 5w2WbEkFWo08GPJ4TUtx+Kw=
> =jjxq
> -----END PGP SIGNATURE-----
>
>
> -----------------------------------------------------------------
> This email message is intended only for the addressee(s) 
> and contains information that may be confidential and/or 
> copyrighted.  If you are not the intended recipient please 
> notify the sender by reply email and immediately delete 
> this email. Use, disclosure or reproduction of this email 
> by anyone other than the intended recipient(s) is strictly 
> prohibited. USIT has scanned this email for viruses and 
> dangerous content and believes it to be clean. However, 
> virus scanning is ultimately the responsibility of the recipient.
> -----------------------------------------------------------------
>
>   
Hi Chris

Does the app use a database in a file? e.g. a access database og Borland 
database?

try to put this in the share in smb.conf it worked for me with my 
borland database engine apps.

        veto oplock files = /*.LCK/*.lck/*.net/*.NET/*.*db/*.*DB/
        oplocks = No
        level2 oplocks = No
        strict locking = No


-- 
Venlig Hilsen (Best Regards)
Rune Tønnesen



More information about the samba mailing list