[Samba] SMB Trans2 Response and STATUS_OBJECT_NAME_NOT_FOUND

masetto masetto4ever at gmail.com
Mon Jul 5 02:27:56 MDT 2010

Good Morning,

let me explain the problem:

i need to establish a connection with a Windows host (Windows 7) via
smbclient (from ubuntu linux), to run a script which needs to get some file
informations (eg. size, version, etc..). Connection and authentication works
perfectly. From linux, i can execute the following command:

smb: \> allinfo test.txt
altname: test.txt
create_time:    Thu 01 Jul 2010 11:06:30 AM CEST CEST
access_time:    Thu 01 Jul 2010 11:06:30 AM CEST CEST
write_time:     Thu 01 Jul 2010 11:06:30 AM CEST CEST
change_time:    Thu 01 Jul 2010 12:12:07 PM CEST CEST
stream: [::$DATA], 0 bytes

response from Windows: 20 bytes (data_len within cli_qpathinfo_alt_name()

But, when i try to do the same thing on another file (let's say
Windows\twain.dll or any other exe or dll) i got:

smb: \Windows\> allinfo twain.dll
ERRSRV - ERRerror (Non-specific error code.) getting alt name for

response from Windows: 0 bytes (?)

Wireshark say:
SMB - Trans2 Request, QUERY_PATH_INFO, Query File Alt Name Info,

However, for the same file, the GET command works without any problem. It
looks like i've an issue on Windows :/

More information about the samba mailing list