[Pkg-samba-maint] Bug#410802: smbclient: smbmount does not handle correctly unicode

Jean-Michel jeanmichel.123 at free.fr
Tue Feb 13 14:15:25 CET 2007


Package: smbclient
Version: 3.0.23d-2+b1
Severity: normal


When I acces a windows 2000 server, with smbmount, ls display unexisting
files, without displaying existing files.
When renamed_ethereal tool shows filenames are sent by the server as UTF-16/UCS2 on
the network (even if ethereal seams to have some  issue displaying
unicode text)..
Then, the client make a status request on each unexisting files.

# sudo smbmount '//chyprew/c$' /mnt/essai2 -o
user,noauto,username=administrateur%,fmask=666,dmask=777,unicode
# ls -l /mnt/essai2/
total 0
?--------- ? ? ? ?                ? /mnt/essai2/_
?--------- ? ? ? ?                ? /mnt/essai2/%
?--------- ? ? ? ?                ? /mnt/essai2/a
?--------- ? ? ? ?                ? /mnt/essai2/a
?--------- ? ? ? ?                ? /mnt/essai2/a
?--------- ? ? ? ?                ? /mnt/essai2/a
?--------- ? ? ? ?                ? /mnt/essai2/A

A capture whith debian/ethereal/wireshak:
displays the text ending this document:


No.     Time        Source                Destination           Protocol
Info
   1722 19.634743   client_ip        serveur_ip       SMB
Trans2 Request, FIND_NEXT2, Continue: 

Frame 1722 (151 bytes on wire, 151 bytes captured)
    Arrival Time: Feb 13, 2007 13:39:53.456306000
    [Time delta from previous packet: 0.000246000 seconds]
    [Time since reference or first frame: 19.634743000 seconds]
    Frame Number: 1722
    Packet Length: 151 bytes
    Capture Length: 151 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:ip:tcp:nbss:smb]
    [Coloring Rule Name: Checksum Errors]
    [Coloring Rule String: edp.checksum_bad==1 || ip.checksum_bad==1 ||
tcp.checksum_bad || udp.checksum_bad]
Ethernet II, Src: Client_eth (client_eth), Dst:
Serveur_eth (serveur_eth)
    Destination: Serveur_eth (serveur_eth)
        Address: Serveur_eth (serveur_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Source: Client_eth (client_eth)
        Address: Client_eth (client_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Type: IP (0x0800)
Internet Protocol, Src: client_ip (client_ip), Dst:
serveur_ip (serveur_ip)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 137
    Identification: 0x9d9a (40346)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0x42be [correct]
        [Good: True]
        [Bad : False]
    Source: client_ip (client_ip)
    Destination: serveur_ip (serveur_ip)
Transmission Control Protocol, Src Port: 44984 (44984), Dst Port:
microsoft-ds (445), Seq: 899, Ack: 5173, Len: 85
    Source port: 44984 (44984)
    Destination port: microsoft-ds (445)
    Sequence number: 899    (relative sequence number)
    [Next sequence number: 984    (relative sequence number)]
    Acknowledgement number: 5173    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 20992 (scaled)
    Checksum: 0x5a92 [incorrect, should be 0x976c (maybe caused by
checksum offloading?)]
    Options: (12 bytes)
        NOP
        NOP
        Timestamps: TSval 25273783, TSecr 1001559
    [SEQ/ACK analysis]
        [This is an ACK to the segment in frame: 1721]
        [The RTT to ACK the segment was: 0.000246000 seconds]
NetBIOS Session Service
    Message Type: Session message
    Length: 81
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        [Response in: 1723]
        SMB Command: Trans2 (0x32)
        Error Class: Success (0x00)
        Reserved: 00
        Error Code: No Error
        Flags: 0x08
            0... .... = Request/Response: Message is a request to the
server
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not
canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not
been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not
supported
        Flags2: 0x8003
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .0.. .... .... .... = Error Code Type: Error codes are DOS
error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads
if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 0... .... .... = Extended Security Negotiation:
Extended security negotiation is not supported
            .... .... .0.. .... = Long Names Used: Path names in request
are not long file names
            .... .... .... .0.. = Security Signatures: Security
signatures are not supported
            .... .... .... ..1. = Extended Attributes: Extended
attributes are supported
            .... .... .... ...1 = Long Names Allowed: Long file names
are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
            [Path: \\CHYPREW\C$]
            [Mapped in: 591]
        Process ID: 1
        User ID: 2048
        Multiplex ID: 6
    Trans2 Request (0x32)
        Word Count (WCT): 15
        Total Parameter Count: 13
        Total Data Count: 0
        Max Parameter Count: 64
        Max Data Count: 4192
        Max Setup Count: 0
        Reserved: 00
        Flags: 0x0000
            .... .... .... ..0. = One Way Transaction: Two way
transaction
            .... .... .... ...0 = Disconnect TID: Do NOT disconnect TID
        Timeout: Return immediately (0)
        Reserved: 0000
        Parameter Count: 13
        Parameter Offset: 68
        Data Count: 0
        Data Offset: 0
        Setup Count: 1
        Reserved: 00
        Subcommand: FIND_NEXT2 (0x0002)
        Byte Count (BCC): 16
        Padding: 000000
        FIND_NEXT2 Parameters
            Search ID: 0x0800
            Search Count: 512
            Level of Interest: Find File Both Directory Info (260)
            Resume Key: 0
            Flags: 0x000a
                .... .... ...0 .... = Backup Intent: No backup intent
                .... .... .... 1... = Continue: CONTINUE search from
previous position
                .... .... .... .0.. = Resume: Do NOT return resume keys
                .... .... .... ..1. = Close on EOS: CLOSE search if END
OF SEARCH is reached
                .... .... .... ...0 = Close: Do NOT close search after
this request
            File Name: 

No.     Time        Source                Destination           Protocol
Info
   1723 19.635150   serveur_ip       client_ip        SMB
Trans2 Response, FIND_NEXT2, Files: r\351pertoire_et_accents.txt
sauvegarde_fullsync setjar.bat.lnk SharpE System Volume Information temp
toto users WINDOWS WINNT _old.xemacs_old

Frame 1723 (1454 bytes on wire, 1454 bytes captured)
    Arrival Time: Feb 13, 2007 13:39:53.456713000
    [Time delta from previous packet: 0.000407000 seconds]
    [Time since reference or first frame: 19.635150000 seconds]
    Frame Number: 1723
    Packet Length: 1454 bytes
    Capture Length: 1454 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:ip:tcp:nbss:smb]
    [Coloring Rule Name: SMB]
    [Coloring Rule String: smb || nbss || nbns || nbipx || ipxsap ||
netbios]
Ethernet II, Src: Serveur_eth (serveur_eth), Dst:
Client_eth (client_eth)
    Destination: Client_eth (client_eth)
        Address: Client_eth (client_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Source: Serveur_eth (serveur_eth)
        Address: Serveur_eth (serveur_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Type: IP (0x0800)
Internet Protocol, Src: serveur_ip (serveur_ip), Dst:
client_ip (client_ip)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 1440
    Identification: 0xe1e7 (57831)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: TCP (0x06)
    Header checksum: 0xb959 [correct]
        [Good: True]
        [Bad : False]
    Source: serveur_ip (serveur_ip)
    Destination: client_ip (client_ip)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
44984 (44984), Seq: 5173, Ack: 984, Len: 1388
    Source port: microsoft-ds (445)
    Destination port: 44984 (44984)
    Sequence number: 5173    (relative sequence number)
    [Next sequence number: 6561    (relative sequence number)]
    Acknowledgement number: 984    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 63257
    Checksum: 0x1915 [correct]
    Options: (12 bytes)
        NOP
        NOP
        Timestamps: TSval 1001559, TSecr 25273783
    [SEQ/ACK analysis]
        [This is an ACK to the segment in frame: 1722]
        [The RTT to ACK the segment was: 0.000407000 seconds]
NetBIOS Session Service
    Message Type: Session message
    Length: 1384
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        [Response to: 1722]
        [Time from request: 0.000407000 seconds]
        SMB Command: Trans2 (0x32)
        Error Class: Success (0x00)
        Reserved: 00
        Error Code: No Error
        Flags: 0x88
            1... .... = Request/Response: Message is a response to the
client/redirector
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not
canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not
been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not
supported
        Flags2: 0x8003
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .0.. .... .... .... = Error Code Type: Error codes are DOS
error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads
if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 0... .... .... = Extended Security Negotiation:
Extended security negotiation is not supported
            .... .... .0.. .... = Long Names Used: Path names in request
are not long file names
            .... .... .... .0.. = Security Signatures: Security
signatures are not supported
            .... .... .... ..1. = Extended Attributes: Extended
attributes are supported
            .... .... .... ...1 = Long Names Allowed: Long file names
are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
            [Path: \\CHYPREW\C$]
            [Mapped in: 591]
        Process ID: 1
        User ID: 2048
        Multiplex ID: 6
    Trans2 Response (0x32)
        Subcommand: FIND_NEXT2 (0x0002)
        Word Count (WCT): 10
        Total Parameter Count: 8
        Total Data Count: 1320
        Reserved: 0000
        Parameter Count: 8
        Parameter Offset: 56
        Parameter Displacement: 0
        Data Count: 1320
        Data Offset: 64
        Data Displacement: 0
        Setup Count: 0
        Reserved: 00
        Byte Count (BCC): 1329
        Padding: 00
        FIND_NEXT2 Parameters
            Search Count: 11
            End Of Search: 1
            EA Error offset: 0
            Last Name Offset: 1192
        FIND_NEXT2 Data
            Find File Both Directory Info File:
r\351pertoire_et_accents.txt
                Next Entry Offset: 144
                File Index: 0
                Created: Jun 28, 2006 11:37:07.343750000
                Last Access: Jun 28, 2006 11:37:07.343750000
                Last Write: Jun 28, 2006 11:37:07.343750000
                Change: Jun 30, 2006 19:03:39.156250000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000020
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..1. .... = Archive:
This file has been modified since last ARCHIVE
                    .... .... .... .... .... .... ...0 .... = Directory:
This is NOT a directory
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 50
                EA List Length: 0
                Short File Name Len: 24
                Reserved: 00
                Short File Name: RPERTO~1.TXT
                File Name: r\351pertoire_et_accents.txt
            Find File Both Directory Info File: sauvegarde_fullsync
                Next Entry Offset: 136
                File Index: 0
                Created: Nov 16, 2006 17:22:08.203125000
                Last Access: Feb 13, 2007 10:27:21.671875000
                Last Write: Nov 16, 2006 17:23:06.312500000
                Change: Nov 16, 2006 17:23:06.312500000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000010
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 38
                EA List Length: 0
                Short File Name Len: 16
                Reserved: 00
                Short File Name: SAUVEG~1
                File Name: sauvegarde_fullsync
            Find File Both Directory Info File: setjar.bat.lnk
                Next Entry Offset: 128
                File Index: 0
                Created: Oct  6, 2006 10:55:30.609375000
                Last Access: Jan 11, 2007 13:40:27.290000000
                Last Write: Oct  6, 2006 10:55:30.609375000
                Change: Oct  6, 2006 10:55:34.875000000
                End Of File: 678
                Allocation Size: 4096
                File Attributes: 0x00000020
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..1. .... = Archive:
This file has been modified since last ARCHIVE
                    .... .... .... .... .... .... ...0 .... = Directory:
This is NOT a directory
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 28
                EA List Length: 0
                Short File Name Len: 24
                Reserved: 00
                Short File Name: SETJAR~1.LNK
                File Name: setjar.bat.lnk
            Find File Both Directory Info File: SharpE
                Next Entry Offset: 112
                File Index: 0
                Created: Apr 13, 2006 20:30:27.531250000
                Last Access: Feb 13, 2007 10:27:21.671875000
                Last Write: Apr 18, 2006 17:50:02.484375000
                Change: Apr 18, 2006 17:50:02.484375000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000010
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 12
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: SharpE
            Find File Both Directory Info File: System Volume
Information
                Next Entry Offset: 144
                File Index: 0
                Created: Jan 14, 2005 17:11:51.750000000
                Last Access: Feb 12, 2007 09:47:09.281250000
                Last Write: Jan 14, 2005 17:11:55.562500000
                Change: Jan 14, 2005 17:11:55.562500000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000016
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .1.. = System:
This is a SYSTEM file
                    .... .... .... .... .... .... .... ..1. = Hidden:
This is a HIDDEN file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 50
                EA List Length: 0
                Short File Name Len: 16
                Reserved: 00
                Short File Name: SYSTEM~1
                File Name: System Volume Information
            Find File Both Directory Info File: temp
                Next Entry Offset: 104
                File Index: 0
                Created: Feb  4, 2005 10:11:57.781250000
                Last Access: Feb 13, 2007 10:27:23.921875000
                Last Write: Feb  1, 2007 14:06:55.788375000
                Change: Feb  1, 2007 14:06:55.788375000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000010
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 8
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: temp
            Find File Both Directory Info File: toto
                Next Entry Offset: 104
                File Index: 0
                Created: Feb 16, 2005 14:43:13.828125000
                Last Access: Jan 15, 2007 19:33:47.578125000
                Last Write: Feb 16, 2005 14:43:02.000000000
                Change: May  3, 2006 20:04:39.125000000
                End Of File: 3
                Allocation Size: 8
                File Attributes: 0x00000020
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..1. .... = Archive:
This file has been modified since last ARCHIVE
                    .... .... .... .... .... .... ...0 .... = Directory:
This is NOT a directory
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 8
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: toto
            Find File Both Directory Info File: users
                Next Entry Offset: 104
                File Index: 0
                Created: Mar 17, 2005 11:24:49.656250000
                Last Access: Feb 13, 2007 10:27:41.265625000
                Last Write: Mar 17, 2005 11:25:00.203125000
                Change: Mar 17, 2005 11:25:00.203125000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000010
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 10
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: users
            Find File Both Directory Info File: WINDOWS
                Next Entry Offset: 112
                File Index: 0
                Created: Feb 16, 2005 11:58:46.390625000
                Last Access: Feb 13, 2007 10:27:43.484375000
                Last Write: May  3, 2006 20:30:41.750000000
                Change: May  3, 2006 20:30:49.656250000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000010
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 14
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: WINDOWS
            Find File Both Directory Info File: WINNT
                Next Entry Offset: 104
                File Index: 0
                Created: Jan 14, 2005 17:42:27.828125000
                Last Access: Feb 13, 2007 09:49:29.187500000
                Last Write: Jan 10, 2007 14:37:47.562500000
                Change: Jan 10, 2007 14:37:47.562500000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000030
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..1. .... = Archive:
This file has been modified since last ARCHIVE
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..0. = Hidden:
This is NOT a hidden file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 10
                EA List Length: 0
                Short File Name Len: 0
                Reserved: 00
                Short File Name: 
                File Name: WINNT
            Find File Both Directory Info File: _old.xemacs_old
                Next Entry Offset: 0
                File Index: 0
                Created: Nov  3, 2006 10:50:41.375000000
                Last Access: Feb 13, 2007 10:27:46.859375000
                Last Write: Nov  3, 2006 11:07:47.437500000
                Change: Nov  3, 2006 11:14:07.875000000
                End Of File: 0
                Allocation Size: 0
                File Attributes: 0x00000012
                    .... .... .... .... .0.. .... .... .... = Encrypted:
This is NOT an encrypted file
                    .... .... .... .... ..0. .... .... .... = Content
Indexed: This file MAY be indexed by the content indexing service
                    .... .... .... .... ...0 .... .... .... = Offline:
This file is NOT offline
                    .... .... .... .... .... 0... .... .... =
Compressed: This is NOT a compressed file
                    .... .... .... .... .... .0.. .... .... = Reparse
Point: This file does NOT have an associated reparse point
                    .... .... .... .... .... ..0. .... .... = Sparse:
This is NOT a sparse file
                    .... .... .... .... .... ...0 .... .... = Temporary:
This is NOT a temporary file
                    .... .... .... .... .... .... 0... .... = Normal:
This file has some attribute set
                    .... .... .... .... .... .... .0.. .... = Device:
This is NOT a device
                    .... .... .... .... .... .... ..0. .... = Archive:
This file has NOT been modified since last archive
                    .... .... .... .... .... .... ...1 .... = Directory:
This is a DIRECTORY
                    .... .... .... .... .... .... .... 0... = Volume ID:
This is NOT a volume ID
                    .... .... .... .... .... .... .... .0.. = System:
This is NOT a system file
                    .... .... .... .... .... .... .... ..1. = Hidden:
This is a HIDDEN file
                    .... .... .... .... .... .... .... ...0 = Read Only:
This file is NOT read only
                File Name Len: 30
                EA List Length: 0
                Short File Name Len: 20
                Reserved: 00
                Short File Name: _OLD~1.XEM
                File Name: _old.xemacs_old
            Unknown Data: 00000000

No.     Time        Source                Destination           Protocol
Info
   1724 19.635359   client_ip        serveur_ip       SMB
Trans2 Request, QUERY_PATH_INFO, Query File All Info, Path: \%

Frame 1724 (149 bytes on wire, 149 bytes captured)
    Arrival Time: Feb 13, 2007 13:39:53.456922000
    [Time delta from previous packet: 0.000209000 seconds]
    [Time since reference or first frame: 19.635359000 seconds]
    Frame Number: 1724
    Packet Length: 149 bytes
    Capture Length: 149 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:ip:tcp:nbss:smb]
    [Coloring Rule Name: Checksum Errors]
    [Coloring Rule String: edp.checksum_bad==1 || ip.checksum_bad==1 ||
tcp.checksum_bad || udp.checksum_bad]
Ethernet II, Src: Client_eth (client_eth), Dst:
Serveur_eth (serveur_eth)
    Destination: Serveur_eth (serveur_eth)
        Address: Serveur_eth (serveur_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Source: Client_eth (client_eth)
        Address: Client_eth (client_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Type: IP (0x0800)
Internet Protocol, Src: client_ip (client_ip), Dst:
serveur_ip (serveur_ip)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 135
    Identification: 0x9d9b (40347)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0x42bf [correct]
        [Good: True]
        [Bad : False]
    Source: client_ip (client_ip)
    Destination: serveur_ip (serveur_ip)
Transmission Control Protocol, Src Port: 44984 (44984), Dst Port:
microsoft-ds (445), Seq: 984, Ack: 6561, Len: 83
    Source port: 44984 (44984)
    Destination port: microsoft-ds (445)
    Sequence number: 984    (relative sequence number)
    [Next sequence number: 1067    (relative sequence number)]
    Acknowledgement number: 6561    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 23936 (scaled)
    Checksum: 0x5a90 [incorrect, should be 0x16a4 (maybe caused by
checksum offloading?)]
    Options: (12 bytes)
        NOP
        NOP
        Timestamps: TSval 25273784, TSecr 1001559
    [SEQ/ACK analysis]
        [This is an ACK to the segment in frame: 1723]
        [The RTT to ACK the segment was: 0.000209000 seconds]
NetBIOS Session Service
    Message Type: Session message
    Length: 79
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        [Response in: 1725]
        SMB Command: Trans2 (0x32)
        Error Class: Success (0x00)
        Reserved: 00
        Error Code: No Error
        Flags: 0x08
            0... .... = Request/Response: Message is a request to the
server
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not
canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not
been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not
supported
        Flags2: 0x8003
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .0.. .... .... .... = Error Code Type: Error codes are DOS
error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads
if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 0... .... .... = Extended Security Negotiation:
Extended security negotiation is not supported
            .... .... .0.. .... = Long Names Used: Path names in request
are not long file names
            .... .... .... .0.. = Security Signatures: Security
signatures are not supported
            .... .... .... ..1. = Extended Attributes: Extended
attributes are supported
            .... .... .... ...1 = Long Names Allowed: Long file names
are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
            [Path: \\CHYPREW\C$]
            [Mapped in: 591]
        Process ID: 1
        User ID: 2048
        Multiplex ID: 7
    Trans2 Request (0x32)
        Word Count (WCT): 15
        Total Parameter Count: 11
        Total Data Count: 0
        Max Parameter Count: 64
        Max Data Count: 4192
        Max Setup Count: 0
        Reserved: 00
        Flags: 0x0000
            .... .... .... ..0. = One Way Transaction: Two way
transaction
            .... .... .... ...0 = Disconnect TID: Do NOT disconnect TID
        Timeout: Return immediately (0)
        Reserved: 0000
        Parameter Count: 11
        Parameter Offset: 68
        Data Count: 0
        Data Offset: 0
        Setup Count: 1
        Reserved: 00
        Subcommand: QUERY_PATH_INFO (0x0005)
        Byte Count (BCC): 14
        Padding: 000000
        QUERY_PATH_INFO Parameters
            Level of Interest: Query File All Info (263)
            Reserved: 00000000
            File Name: \%

No.     Time        Source                Destination           Protocol
Info
   1725 19.635587   serveur_ip       client_ip        SMB
Trans2 Response, QUERY_PATH_INFO, Error: File not found (pathname error)

Frame 1725 (105 bytes on wire, 105 bytes captured)
    Arrival Time: Feb 13, 2007 13:39:53.457150000
    [Time delta from previous packet: 0.000228000 seconds]
    [Time since reference or first frame: 19.635587000 seconds]
    Frame Number: 1725
    Packet Length: 105 bytes
    Capture Length: 105 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:ip:tcp:nbss:smb]
    [Coloring Rule Name: SMB]
    [Coloring Rule String: smb || nbss || nbns || nbipx || ipxsap ||
netbios]
Ethernet II, Src: Serveur_eth (serveur_eth), Dst:
Client_eth (client_eth)
    Destination: Client_eth (client_eth)
        Address: Client_eth (client_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Source: Serveur_eth (serveur_eth)
        Address: Serveur_eth (serveur_eth)
        .... ...0 .... .... .... .... = IG bit: Individual address
(unicast)
        .... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
    Type: IP (0x0800)
Internet Protocol, Src: serveur_ip (serveur_ip), Dst:
client_ip (client_ip)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 91
    Identification: 0xe1e8 (57832)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: TCP (0x06)
    Header checksum: 0xbe9d [correct]
        [Good: True]
        [Bad : False]
    Source: serveur_ip (serveur_ip)
    Destination: client_ip (client_ip)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port:
44984 (44984), Seq: 6561, Ack: 1067, Len: 39
    Source port: microsoft-ds (445)
    Destination port: 44984 (44984)
    Sequence number: 6561    (relative sequence number)
    [Next sequence number: 6600    (relative sequence number)]
    Acknowledgement number: 1067    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 63174
    Checksum: 0xc829 [correct]
    Options: (12 bytes)
        NOP
        NOP
        Timestamps: TSval 1001559, TSecr 25273784
    [SEQ/ACK analysis]
        [This is an ACK to the segment in frame: 1724]
        [The RTT to ACK the segment was: 0.000228000 seconds]
NetBIOS Session Service
    Message Type: Session message
    Length: 35
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        [Response to: 1724]
        [Time from request: 0.000228000 seconds]
        SMB Command: Trans2 (0x32)
        Error Class: DOS Error (0x01)
        Reserved: 00
        Error Code: File not found (pathname error)
        Flags: 0x88
            1... .... = Request/Response: Message is a response to the
client/redirector
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not
canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not
been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not
supported
        Flags2: 0x8003
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .0.. .... .... .... = Error Code Type: Error codes are DOS
error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads
if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 0... .... .... = Extended Security Negotiation:
Extended security negotiation is not supported
            .... .... .0.. .... = Long Names Used: Path names in request
are not long file names
            .... .... .... .0.. = Security Signatures: Security
signatures are not supported
            .... .... .... ..1. = Extended Attributes: Extended
attributes are supported
            .... .... .... ...1 = Long Names Allowed: Long file names
are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
            [Path: \\CHYPREW\C$]
            [Mapped in: 591]
        Process ID: 1
        User ID: 2048
        Multiplex ID: 7
    Trans2 Response (0x32)
        Subcommand: QUERY_PATH_INFO (0x0005)
        Word Count (WCT): 0
        Byte Count (BCC): 0


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages smbclient depends on:
ii  libc6         2.3.6.ds1-4                GNU C Library: Shared libraries
ii  libcomerr2    1.38+1.39-WIP-2005.12.31-1 common error description library
ii  libkrb53      1.4.3-7                    MIT Kerberos runtime libraries
ii  libldap2      2.1.30-13                  OpenLDAP libraries
ii  libncurses5   5.5-1.1                    Shared libraries for terminal hand
ii  libpopt0      1.10-2                     lib for parsing cmdline parameters
ii  libreadline5  5.2-1                      GNU readline and history libraries
ii  samba-common  3.0.23d-2+b1               Samba common files used by both th

smbclient recommends no packages.

-- no debconf information




More information about the Pkg-samba-maint mailing list