samba-2, samba-3 client and WXP share name length limitation

David Wuertele dave-gnus at
Thu Nov 13 22:24:18 GMT 2003

Gerald> I closed this since I would rather just keep smbdclient as
Gerald> smbclient and not the 'son of rpcclient'.  If net can't
Gerald> enumerate shares using rpc, it should.  We'll fix it there.

Your note suggests that "net rpc" should work.  Here I try both
smbclient and "net rpc":

  $ ./smbclient -s /etc/samba/smb.conf -L //B1-XP-3

          Sharename      Type      Comment
          ---------      ----      -------
          IPC$           IPC       Remote IPC
          My Music       Disk      
          My Pictures    Disk      
          ADMIN$         Disk      Remote Admin
          C$             Disk      Default share

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

          Workgroup            Master
          ---------            -------
  $ ./net -s /etc/samba/smb.conf rpc share -S B1-XP-3
  [2003/11/13 14:22:12, 0] utils/net_rpc.c:run_rpc_command(146)
    Could not initialise pipe
  [2003/11/13 14:22:12, 0] rpc_client/cli_pipe.c:rpc_api_pipe(419)
    cli_pipe: return critical error. Error was NT_STATUS_INVALID_HANDLE

Am I using "net rpc" right?  I would have expected to at least see the
same shares that smbclient lists, plus one more:  a long-named share
(18 characters) not reported by smbclient.


More information about the samba-technical mailing list