[Samba] *update* SMB Trans2 Response STATUS_OBJECT_NAME_NOT_FOUND Problem

masetto masetto4ever at gmail.com
Tue Jul 6 07:09:50 MDT 2010

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 file) 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 :/
The same problem happen with smb: \> allinfo autoexec.bat as well as many
other files.


Using FileSpy (from osronline.com) i can see the following, in response to
the allinfo command:

C:\autoexec.bat STATUS_SUCCESS FILE_OPEN CreOpts: 00200000 Access: 00000080
Share: 00000007 Attrib: 0 Result: FILE_OPENED  <-- So it shouldn't be a
permissions issue
System  ... IRP_MJ_QUERY_INFORMATION  ..C:\autoexec.bat
STATUS_OBJECT_NAME_NOT_FOUND    FileAlternateNameInformation

FileAlternateNameInformation - From

"This information class is used to query alternate name information for a
file. The alternate name for a file is its 8.3  format name
(eight characters that appear before the "." and three characters that
appear after). A file MAY have an alternate name to achieve
compatibility with the 8.3 naming requirements of legacy applications...This
operation returns a status code...The status code returned
directly by the function that processes this file information class MUST be
STATUS_SUCCESS or one of the following.

What do you think?
For some reason, when smbclient issue the allinfo command,
FileAlternateNameInformation seems to fail for some reason on the windows

I've tried to follow
http://technet.microsoft.com/en-us/library/cc778996%28WS.10%29.aspx (change
that value to 1) but the problem is still there,
at least on Windows Vista and 7.

Is there any way i can solve this problem?

I've found this problem with:

- smbclient --version
Version 3.4.7
Version 3.5.4

on Ubuntu 10.04 2.6.32-23-generic x86_64 and gentoo

Thanks for your attention

More information about the samba mailing list