Bug 125247 - 'smbclient -L' not listing long-share-names
'smbclient -L' not listing long-share-names
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: samba (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Simo Sorce
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-06-03 22:07 EDT by Stuat J. Browne
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-19 15:24:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stuat J. Browne 2004-06-03 22:07:29 EDT
Description of problem:

Setting up a share with a name longer than 12 characters does not 
show up, or shows a truncated name, when listing shares using 
the 'smbclient -L <machinename>' command.

Samba can successfully create such a long share, and smbclient can 
successfully connect to a long-named share, but it cannot list them.

Version-Release number of selected component (if applicable):


How reproducible:

Every Time

Steps to Reproduce:

1.  Create a share with longer-than-12-characters in it's name on a 
Win 2K/XP machine.
1(alt). Create a share with longer-than-12-characters in it's name on 
a Samba server.
2.  Run the command: 'smbclient -N -L <machinename>', or 'smbclient -
L <machinename> -U <user>%<pass>'
Actual results:

Created a share on my local Windows XP machine 
called 'AReallyLongShareNameGoesHere', and successfully able to view 
and use the share from Windows.  Also able to *use* the share from 

Executing the command:

smbclient -N -L STUART

lists all available shares except the one listed above.

Output was:

[root@notes samba-3.0.2]# smbclient -N -L STUART
Domain=[STUART] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        PUBLIC         Disk      Documents 'n stuff - Backup
        rlj_stu        Printer   RLP Test
        IPC$           IPC       Remote IPC
        Documents      Disk      Documents 'Stuart' - backup
        print$         Disk      Printer Drivers
        CDROM          Disk      
        stuff          Disk      
        ADMIN$         Disk      Remote Admin
        C$             Disk      Default share
Domain=[STUART] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
[root@notes samba-3.0.2]#

When creating a share on a Samba server, the output is as follows 
(showing a truncated share-name):

[root@notes samba-3.0.2]# smbclient -N -L localhost
Anonymous login successful
Domain=[PROMED] OS=[Unix] Server=[Samba 3.0.2-6.3E]

        Sharename      Type      Comment
        ---------      ----      -------
        netlogon       Disk      Network Logon Service
        bluesky        Disk      
        media          Disk      File Dump of different media
        publications   Disk      Pro medicus Publications
        development    Disk      Development Share
        myob           Disk      MYOB Data store
        due            Disk      Due Dilligence Share
        hpjetsuite     Disk      HP JetSuite Phonebook data
        quotes         Disk      Client Quotes
        mks            Disk      MKS Tool Kit/Sandboxes
        tech           Disk      Pro Medicus Tech Intranet
        cygwin         Disk      CygWin: Windows based Unix 
        cdimages       Disk      CD Images stored on Notes
        AReallyLongSh  Disk      smb test
        IPC$           IPC       IPC Service (Pro Medicus File Server 
        ADMIN$         IPC       IPC Service (Pro Medicus File Server 
Anonymous login successful
Domain=[PROMED] OS=[Unix] Server=[Samba 3.0.2-6.3E]

        Server               Comment
        ---------            -------

Expected results:

In previous builds of Samba (2.2.6) these long shares were listed 

Additional info:

We 'smbclient' to list shares on given user PC's in order to do minor 
backups of local data.  In older releases of samba, this all worked 

Upon upgrading our server to RHES3, and thus RH3, this functionality 
has been reduced, forcing us to re-name a number of user shares to 
shorter names.
Comment 1 Matt Seitz 2004-11-18 16:53:24 EST
This is a known Samba bug, with a known workaround:

Comment 2 Stuat J. Browne 2004-11-18 17:03:25 EST
Actually as the 2nd post there lists, it's only a partial fix.  There 
is still issues using the 'net rpc share -S <machine>' method.
Comment 3 RHEL Product and Program Management 2007-10-19 15:24:51 EDT
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.

Note You need to log in before you can comment on or make changes to this bug.