smbclient -L can't see shares with spaces in the name

Steve Langasek vorlon at netexpress.net
Sun Dec 22 01:12:00 GMT 2002


It appears that 'smbclient -L' is not able to view shares on an NT
server (or above) that are created with a space in the name, although it
is possible to access these shares if the name is given explicitly.  The
reason is that NT, 2K, and XP will not return these shares in response
to a NetShareEnum, presumably because (as a warning under NT suggests
when creating such a share) DOS clients will be confused by such share
names.

Windows clients get around this by doing a NetrShareEnum call on
\SRVSVC instead.  Samba also implements this functionality, but the
necessary code is not linked into smbclient.

Should it be?  It seems easy enough to link it in, but so far smbclient
doesn't include any RPC code.  Is it better to recommend that people use
one of the other RPC-aware tools (e.g., 'net share')?  In that case,
what should be done for libsmbclient, which also has this problem?

-- 
Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20021222/46f83693/attachment.bin


More information about the samba-technical mailing list