Hi, I have a problem with Samba 3.0.4 and DOS 6.2.2. Our clientinstallation works with PXE. This setup connects the samba-server with a DOS 6.2.2 batch-script, which attempts to copy a text-file from the client to the installation-share. I have interrupted the script and attempted to do the copy manually. Error-message: File not found. "copy a:\hwinfo.txt w:\$BmNewPc.Dir\05100be5.chi" If there is already a destination-file with this name, the copy works fine. You also can do this without any error: "echo . > w:\$BmNewPc.Dir\05100be5.chi" or "type a:\hwinfo.txt > w:\$BmNewPc.Dir\05100be5.chi" in any file, whether the destination-file already exists or not. Unfortunately I can't change the script, so I have to solve this issue. I would be very happy, if anyone could help. Thanks, wiesch Here are the settings in our smb.conf: *************************************** [global] workgroup = FOO interfaces = eth0:1, eth0:2 netbios name = Server netbios aliases = Server2 min passwd length = 8 guest account = username passwd program = /usr/bin/passwd %u password level = 6 passwd chat = *new*password* %n\n *new*password* %n\n *changed* log level = 0 log file = /var/log/samba/ulog.%m deadtime = 5 keepalive = 130 max disk size = 2000 printcap cache time = 750 cups options = raw printer admin = @ntadmin, root, administrator load printers = yes printcap name = /etc/printcap logon script = logon.cmd logon drive = E: logon home logon path domain logons = Yes os level = 65 preferred master = Yes domain master = Yes wins support = Yes security = user ldap ssl = no lock directory = /var/log/samba guest ok = Yes hosts allow = 192.168.1., 192.168.2. printing = cubs print command = lpr -r -P'%p' %s lpq command = lpq -P'%p' lprm command = lprm -P'%p' %j lppause command = lpc hold '%p' %j lpresume command = lpc release '%p' %j queuepause command = lpc stop '%p' queueresume command = lpc start '%p' time server = true oplocks = no level2 oplocks = no kernel oplocks = no map to guest = Bad Password [installation] comment = Betriebssysteminstallation fuer W2K Internet-PCs path = /space/home/dos/update/installation dos filemode = yes preserve case = yes short preserve case = yes public = yes guest ok = no write list = root,user1 writable = no printable = no create mode = 770 force create mode = 0770 force directory mode = 0750 ************************************************** And an strace with loglevel 3, where I tried to do the following copy manually: "copy a:\hwinfo.txt w:\$BmNewPC.Dir\Test2.chi" ************************************************** [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 1 of length 102 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBnegprot (pid 21447) [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/negprot.c:reply_negprot(455) Requested protocol [PC NETWORK PROGRAM 1.0] [2004/11/08 11:43:40, 3] smbd/negprot.c:reply_negprot(455) Requested protocol [MICROSOFT NETWORKS 3.0] [2004/11/08 11:43:40, 3] smbd/negprot.c:reply_negprot(455) Requested protocol [DOS LM1.2X002] [2004/11/08 11:43:40, 3] smbd/negprot.c:reply_negprot(532) Selected protocol DOS LM1.2X002 [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 2 of length 88 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBsesssetupX (pid 21447) [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X(649) wct=10 flg2=0x0 [2004/11/08 11:43:40, 2] smbd/sesssetup.c:setup_new_vc_session(602) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2004/11/08 11:43:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X(798) sesssetupX:name=[]\[ROOT]@[05100be5] [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] auth/auth.c:check_ntlm_password(219) check_ntlm_password: Checking password for unmapped user []\[ROOT]@[05100be5] with the new password interface [2004/11/08 11:43:40, 3] auth/auth.c:check_ntlm_password(222) check_ntlm_password: mapped user is: [FOO]\[ROOT]@[05100be5] [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 4] libsmb/ntlm_check.c:ntlm_password_check(369) ntlm_password_check: Checking LM password [2004/11/08 11:43:40, 4] auth/auth_sam.c:sam_account_ok(82) sam_account_ok: Checking SMB password for user root [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] auth/auth.c:check_ntlm_password(268) check_ntlm_password: sam authentication for user [ROOT] succeeded [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/uid.c:push_conn_ctx(357) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [ROOT] -> [ROOT] -> [root] succeeded [2004/11/08 11:43:40, 3] smbd/password.c:register_vuid(222) User name: root Real name: root [2004/11/08 11:43:40, 3] smbd/password.c:register_vuid(241) UNIX uid 0 is UNIX user root, and will be vuid 100 [2004/11/08 11:43:40, 3] smbd/password.c:register_vuid(265) Adding/updating homes service for user 'root' using home directory: '/root' [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 3 of length 70 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBtconX (pid 21447) [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 4] smbd/reply.c:reply_tcon_and_X(381) Client requested device type [A:] for share [INSTALLATION] [2004/11/08 11:43:40, 3] lib/access.c:check_access(313) check_access: no hostnames in host allow/deny list. [2004/11/08 11:43:40, 2] lib/access.c:check_access(324) Allowed connection from (192.168.2.38) [2004/11/08 11:43:40, 3] smbd/service.c:make_connection_snum(457) Connect path is '/space/home/dos/update/installation' for service [installation] [2004/11/08 11:43:40, 4] rpc_server/srv_srvsvc_nt.c:get_share_security(217) get_share_security: using default secdesc for installation [2004/11/08 11:43:40, 3] lib/util_seaccess.c:se_access_check(251) [2004/11/08 11:43:40, 3] lib/util_seaccess.c:se_access_check(252) se_access_check: user sid is S-.... se_access_check: also S-..... se_access_check: also S-..... se_access_check: also S-..... se_access_check: also S-..... se_access_check: also S-..... [2004/11/08 11:43:40, 3] smbd/vfs.c:vfs_init_default(203) Initialising default vfs hooks [2004/11/08 11:43:40, 4] rpc_server/srv_srvsvc_nt.c:get_share_security(217) get_share_security: using default secdesc for installation [2004/11/08 11:43:40, 3] lib/util_seaccess.c:se_access_check(251) [2004/11/08 11:43:40, 3] lib/util_seaccess.c:se_access_check(252) se_access_check: user sid is S-.... se_access_check: also S-.... se_access_check: also S-.... se_access_check: also S-.... se_access_check: also S-.... se_access_check: also S-.... [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 1] smbd/service.c:make_connection_snum(619) 05100be5 (192.168.2.38) connect to service installation initially as user root (uid=0, gid=0) (pid 21447) [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 3] smbd/reply.c:reply_tcon_and_X(429) tconX service=INSTALLATION [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 4 of length 68 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBopen (pid 21447) [2004/11/08 11:43:40, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2004/11/08 11:43:40, 4] smbd/vfs.c:vfs_ChDir(654) vfs_ChDir to /space/home/dos/update/installation [2004/11/08 11:43:40, 4] smbd/dir.c:DirCacheAdd(1040) Added dir cache entry . $BMNEWPC.DIR -> $BmNewPC.dir [2004/11/08 11:43:40, 3] smbd/dosmode.c:unix_mode(111) unix_mode($BmNewPC.dir/TEST2.CHI) returning 0770 [2004/11/08 11:43:40, 4] smbd/open.c:open_file_shared1(1010) calling open_file with flags=0x0 flags2=0x0 mode=0770 [2004/11/08 11:43:40, 3] smbd/open.c:open_file(173) Error opening file $BmNewPC.dir/TEST2.CHI (No such file or directory) (local_flags=0) (flags=0) [2004/11/08 11:43:40, 3] smbd/error.c:error_packet(94) error string = No such file or directory [2004/11/08 11:43:40, 3] smbd/error.c:error_packet(134) error packet at smbd/trans2.c(2219) cmd=2 (SMBopen) eclass=1 ecode=2 [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 5 of length 64 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBchkpth (pid 21447) [2004/11/08 11:43:40, 4] smbd/uid.c:change_to_user(186) change_to_user: Skipping user change - already user [2004/11/08 11:43:40, 3] smbd/error.c:error_packet(94) error string = No such file or directory [2004/11/08 11:43:40, 3] smbd/error.c:error_packet(134) error packet at smbd/reply.c(559) cmd=16 (SMBchkpth) eclass=1 ecode=2 [2004/11/08 11:43:40, 3] smbd/process.c:process_smb(890) Transaction 6 of length 54 [2004/11/08 11:43:40, 3] smbd/process.c:switch_message(685) switch message SMBchkpth (pid 21447) [2004/11/08 11:43:40, 4] smbd/uid.c:change_to_user(186) change_to_user: Skipping user change - already user [2004/11/08 11:43:40, 3] smbd/reply.c:reply_chkpth(572) chkpth $BmNewPC.dir mode=15 **************************************************************************** ****************************