[Fwd: [Fwd: Re: [Samba] : Win XP Client does not remove directories]]

Björn Mayer bjoern.mayer at siempelkamp.com
Mon Jun 26 10:18:59 GMT 2006


Hi @all,

Can someone please just confirm me, that Samba doesn't remove a 
directory in case of a "SET_FILE_INFO"-Request for this directory?

The following abstract is out of an Ethereal-Log and shows a 
SET-FILE-INFO-Request for a directory:

############################################################################
No.     Time        Source                Destination           Protocol 
Info
     176 0.977041    172.20.6.213          172.20.6.252          SMB 
Trans2 Request, SET_FILE_INFO, FID: 0x36c5

...
Transmission Control Protocol, Src Port: 1031 (1031), Dst Port: 
microsoft-ds (445), Seq: 6818, Ack: 25271, Len: 81
NetBIOS Session Service
SMB (Server Message Block Protocol)
     SMB Header
...
     Trans2 Request (0x32)
         Word Count (WCT): 15
         Total Parameter Count: 6
         Total Data Count: 1
         Max Parameter Count: 2
         Max Data Count: 0
         Max Setup Count: 0
         Reserved: 00
         Flags: 0x0000
         Timeout: Return immediately (0)
         Reserved: 0000
         Parameter Count: 6
         Parameter Offset: 68
         Data Count: 1
         Data Offset: 76
         Setup Count: 1
         Reserved: 00
         Subcommand: SET_FILE_INFO (0x0008)
         Byte Count (BCC): 12
         Padding: 000000
         SET_FILE_INFO Parameters
             FID: 0x36c5
             Level of Interest: Set Disposition Information (1013)
             Reserved: 0000
         Padding: 0000
         SET_FILE_INFO Data
             .... ...1 = Delete on close: DELETE this file when closed
############################################################################ 



Thanks in advance, Björn Mayer



-------- Original-Nachricht --------
Betreff: [Fwd: Re: [Samba] : Win XP Client does not remove directories]
Datum: Tue, 13 Jun 2006 10:00:38 +0200
Von: Björn Mayer <bjoern.mayer at siempelkamp.com>
An: samba at lists.samba.org

Hello Mailinglist,

I still have the problem, which is described in my first and second post
with this topic, that i sometimes can't delete directories on the
Samba-Server from WinXP machines.

I can't send my Ethereal-Logs to the list, but i send them to Jeremy,
who never answered me anyway.

If anyone can help me or would like to see the Ethereal-Logs, with the
fact, that Windows sometimes (in faultcase) sends an other request
("SET_FILE_INFO") to delete a directory and this request does not work
with Samba, just write back and I'll send you the files. By the way: The
normal request seems to be "Delete Directory Request (0x01)".

As I already said, I don't know, why Windows starts behaving like that
irregulary and after one restart often everything is fine again, but I
can say, that in the faultcase, where Win sends the different request,
it is  not possible to remove folders from Samba-Shares but still
possible to remove folders from Win-Shares. (That's why i don't post it
to Win-Bugzilla ;) )

Thanks in advance, Björn Mayer



-------- Original-Nachricht --------
Betreff: Re: [Samba] : Win XP Client does not remove directories
Datum: Fri, 05 May 2006 09:37:05 +0200
Von: Björn Mayer <bjoern.mayer at siempelkamp.com>
An: samba at lists.samba.org
Referenzen: <44520375.6070907 at siempelkamp.com>
<445857F6.20504 at siempelkamp.com>
<20060504150256.GH7260 at linux.wal.novell.com>

1. here are the ethereal-files.
I think the names are kind of self-explanatory, but anyway i will
explain it shortly:

The following files were recorded from a Windows-XP-Client, who was not
able to delete a directory on the Samba-Share on the Server 172.20.6.252:
060502_wrong_working_pc.log
bad_pc_with_a_file_in_the_directory.log
In the second log i additionaly put a file into the directory, which
should be removed.

The following file was recorded from a Windows-XP-Client, who was able
to delete a directory on the Samba-Share on the Server 172.20.6.252:
060502_correct_working_pc.log

I additionaly made a new file today, which is recorded from a "not
working" windows client accessing a Test-"Windows Share", where
directory removing still worked well.
infected_pc_accessing_windows_share.log

2.
Jeremy Allison wrote:
  > What does this error mean ? "Datei oder Verzeichnis
  > nicht gefunden". That's the strerror output string when
  > the remove_directory call fails.

In english this means
"File or Directory not found."

3.
Mark Johnson wrote:
  >I had a problem very similiar to this with roaming profiles.  The
  >cause came down to the client and the servers time was not sync'd up.
   >I never figured out how far off it needed to be before it broke it,
but >once I sync'd the time, I've never had a problem with the
directories >since.

First of all, there are no roaming profiles here, but nevertheless i
gave it a try, but this didn't help.
Today i have a new client, who behaves like that, but for example my own
PC never showed this behaviour and believe me in the last days i tried
very much to delete directories ;).

By the way:
I have found some other users in the net, who seem to have a similar
problem.

(German)
http://linuxforum.linux-foren.de/linuxforum/viewtopic.php?p=4154
(English)
http://www.linuxquestions.org/questions/showthread.php?t=93962

I also found some interesting reports, talking about fam:
http://lists.samba.org/archive/samba/2003-September/073799.html
http://www.matthiasluckhardt.de/wiki/index.php/Unable_to_delete_directories_on_a_Samba_share

Maybe the bahaviour of windows is sometimes similar with
GUI-Finux-Filemanagers using fam (whatever fam exactly does).


Always wondering about the spirit of computers and there operating
systems ;),
Björn Mayer


Jeremy Allison wrote:
> On Wed, May 03, 2006 at 09:12:54AM +0200, Björn Mayer wrote:
>> Hi,
>>
>> its me again. I have to post an addition to my problem described below.
>>
>> Yesterday my error occured again on the same client, who had this 
>> problem last time. I took the chance to do some network sniffing and 
>> compared the traffic from the sometimes bad working client to a good 
>> working client.
>> The interesting fact about this is now, that windows sends two different 
>> types of delete requests ("Delete Directory Request (0x01)" and 
>> "SET_FILE_INFO")
>> First of all here are the relevant captured packets from a well working 
>> connection:
> 
> Don't send text versions of network traces - they aren't much
> use in debugging. Can you send in the actual ethereal trace files
> please ?
> 
> Jeremy
> 

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



More information about the samba mailing list