[Samba] Opening Task Manager close files on samba share

Jurado David davidj at skynet.be
Sun Sep 21 18:03:16 GMT 2003


I am currently using samba 2.3a-12.3 as a PDC, here is my smb.conf

[global]

   netbios name = kidpaddle
   workgroup = JUDO

   domain master = yes
   local master = yes
   preferred master = yes
   os level = 255

   wins support = yes
   time server = yes

   security = user
   encrypt passwords = yes
   domain logons = yes

   domain admin group = root davidj

   logon drive = H:
   logon home = \\%N\%u
   logon path = \\%N\profiles\%u

   logon script = logon.bat

   server string = %h server (Samba %v)

   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog only = no
   syslog = 0

   socket options = TCP_NODELAY

[homes]
   comment = Home Directory
   read only = no
   browseable = no
   guest ok = no

   create mask = 0700
   directory mask = 0700

[netlogon]
   comment = Network Logon Service
   path = /home/samba/netlogon
   guest ok = no
   writable = no
   browsable = no

[profiles]
   path = /home/samba/profiles
   browsable = no
   writable = yes
   create mask = 0600
   directory mask = 0700

and I am experiencing the following problem :

On my Windows XP workstation logged on the samba domain with a regular user, when I open the task manager it causes problem to the file(s) in use on the home directory share.

For example when I copy a file from the local file system to the samba share I get the following message : "an unexpected network error has occured".

I sniffed the network to see what happens when the task manager loads and I found that it open a session and the samba reply is ok : logged as guest (???). Then the client seems to close all opened files to the shares.

I post at the end a part of the traces from the sniffer.

How can I stop this problem ?

Thanks.

SMB
	Command: 0x73 (115) - Session Set Up and X (including User Logon)
	Flags1: 0x18 (24)
		Response: 0
		Notify on every action: 0
		Opportunistic Lock: 0
		Canonized Paths: 1
		Ignore Path Case: 1
		Do Not Acknowledge: 0
		LockAndOp Supported: 0
	Flags2: 0x4807 (18439)
		UNICODE: 0
		NT-style error: 1
		Read is allowed if execution is allowed: 0
		Long Name: 1
		Extended attributes: 1
		Non-8.3 names allowed: 1
	Tree ID: 0x0000 (0)
	Process ID: 0xFEFF (65279)
	Multiplex ID: 0xEC45 (60485)
	Command: 0x73 (115) - Session Set Up and X (including User Logon)
		Maximum buffer size: 0xFFFF (65535)
		Maximum multiplexed pending requests: 0x0032 (50)
		Virtual Circuit number: 0x0001 (1)
		Session Key: 0x00000104 (260)
		Capabilities: 0x000000D4 (212)
			Unicode strings: 1
			Large files: 0
			NT LM 0.12 dialect support: 1
			NT-style error: 1
			Opportunistic Locks II: 1
			NT find: 0
		Account Name
Raw Data:
0x0000   00 04 76 17 FA 2A 00 50-DA 4B FB 63 08 00 45 00   ..v.ú*.PÚKûc..E.
0x0010   00 C2 C8 65 40 00 80 06-00 00 C0 A8 00 03 C0 A8   .ÂÈe at .€...À¨..À¨
0x0020   00 04 04 07 00 8B 6C 84-6A 74 67 08 4C 99 50 18   .....‹l„jtg.L™P.
0x0030   F5 98 82 0C 00 00 00 00-00 96 FF 53 4D 42 73 00   õ˜‚......–ÿSMBs.
0x0040   00 00 00 18 07 48 00 00-00 00 00 00 00 00 00 00   .....H..........
0x0050   00 00 00 00 FF FE 00 00-45 EC 0D 75 00 73 00 FF   ....ÿþ..Eì.u.s.ÿ
0x0060   FF 32 00 01 00 04 01 00-00 01 00 00 00 00 00 00   ÿ2..............
0x0070   00 D4 00 00 00 36 00 00-00 00 57 69 6E 64 6F 77   .Ô...6....Window
0x0080   73 20 32 30 30 32 20 32-36 30 30 20 53 65 72 76   s 2002 2600 Serv
0x0090   69 63 65 20 50 61 63 6B-20 31 00 57 69 6E 64 6F   ice Pack 1.Windo
0x00A0   77 73 20 32 30 30 32 20-35 2E 31 00 00 04 FF 00   ws 2002 5.1...ÿ.
0x00B0   96 00 08 00 01 00 18 00-00 5C 5C 4B 49 44 50 41   –........\\KIDPA
0x00C0   44 44 4C 45 5C 49 50 43-24 00 3F 3F 3F 3F 3F 00   DDLE\IPC$.?????.

SMB
	Command: 0x73 (115) - Session Set Up and X (including User Logon)
	Flags1: 0x88 (136)
		Response: 1
		Notify on every action: 0
		Opportunistic Lock: 0
		Canonized Paths: 0
		Ignore Path Case: 1
		Do Not Acknowledge: 0
		LockAndOp Supported: 0
	Flags2: 0x0001 (1)
		UNICODE: 0
		NT-style error: 0
		Read is allowed if execution is allowed: 0
		Long Name: 0
		Extended attributes: 0
		Non-8.3 names allowed: 1
	Tree ID: 0x0003 (3)
	Process ID: 0xFEFF (65279)
	Multiplex ID: 0xEC45 (60485)
	Command: 0x73 (115) - Session Set Up and X (including User Logon)
		Logged as GUEST
Raw Data:
0x0000   00 50 DA 4B FB 63 00 04-76 17 FA 2A 08 00 45 00   .PÚKûc..v.ú*..E.
0x0010   00 8D 72 8D 40 00 40 06-46 86 C0 A8 00 04 C0 A8   .r@. at .F†À¨..À¨
0x0020   00 03 00 8B 04 07 67 08-4C 99 6C 84 6B 0E 50 18   ...‹..g.L™l„k.P.
0x0030   F5 3C AF 57 00 00 00 00-00 61 FF 53 4D 42 73 00   õ<¯W.....aÿSMBs.
0x0040   00 00 00 88 01 00 00 00-00 00 00 00 00 00 00 00   ...ˆ............
0x0050   00 00 03 00 FF FE 8E 00-45 EC 03 75 00 50 00 01   ....ÿþŽ.Eì.u.P..
0x0060   00 27 00 55 6E 69 78 00-53 61 6D 62 61 20 32 2E   .'.Unix.Samba 2.
0x0070   32 2E 33 61 2D 31 32 2E-33 20 66 6F 72 20 44 65   2.3a-12.3 for De
0x0080   62 69 61 6E 00 4A 55 44-4F 00 03 FF 00 00 00 01   bian.JUDO..ÿ....
0x0090   00 08 00 49 50 43 00 49-50 43 00                  ...IPC.IPC.

TCP
	Source port: 1031
	Destination port: 139
	Sequence: 0x6C846BAF (1820617647)
	Acknowledgement: 0x67084D49 (1728597321)
	Header length: 0x05 (5) - 20 bytes
	Flags: PSH ACK 
		URG: 0
		ACK: 1
		PSH: 1
		RST: 0
		SYN: 0
		FIN: 0
	Window: 0xFAA5 (64165)
	Checksum: 0x819F (33183) - incorrect
	Urgent Pointer: 0x0000 (0)
	TCP Options: None
Session Service
	Type: 0x00 (0) - Session message
	Length: 0x000029 (41)
SMB
	Command: 0x04 (4) - Close file
	Flags1: 0x18 (24)
		Response: 0
		Notify on every action: 0
		Opportunistic Lock: 0
		Canonized Paths: 1
		Ignore Path Case: 1
		Do Not Acknowledge: 0
		LockAndOp Supported: 0
	Flags2: 0x4807 (18439)
		UNICODE: 0
		NT-style error: 1
		Read is allowed if execution is allowed: 0
		Long Name: 1
		Extended attributes: 1
		Non-8.3 names allowed: 1
	Tree ID: 0x0001 (1)
	Process ID: 0xFEFF (65279)
	Multiplex ID: 0xECC5 (60613)
	Command: 0x04 (4) - Close file
		File Handle: 0x33EA (13290)
		Last Written Time: 31.63.62
		Last Written Date: 31.15.2107
Raw Data:
0x0000   00 04 76 17 FA 2A 00 50-DA 4B FB 63 08 00 45 00   ..v.ú*.PÚKûc..E.
0x0010   00 55 C8 68 40 00 80 06-00 00 C0 A8 00 03 C0 A8   .UÈh at .€...À¨..À¨
0x0020   00 04 04 07 00 8B 6C 84-6B AF 67 08 4D 49 50 18   .....‹l„k¯g.MIP.
0x0030   FA A5 81 9F 00 00 00 00-00 29 FF 53 4D 42 04 00   ú¥Ÿ.....)ÿSMB..
0x0040   00 00 00 18 07 48 00 00-00 00 00 00 00 00 00 00   .....H..........
0x0050   00 00 01 00 FF FE 64 00-C5 EC 03 EA 33 FF FF FF   ....ÿþd.Åì.ê3ÿÿÿ
0x0060   FF 00 00                                          ÿ..





More information about the samba mailing list