Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to browse all available smb shares in the network, like clicking the "network" in nautilus then all shares are shown, using command line

the closest one I got is smbclient -L SRVNAME, which lists all shares in SRVNAME as well as all other servers in the workgroup and other workgroups available, but it requires me knowing at least the correct SRVNAME

share|improve this question

migrated from stackoverflow.com Jan 1 '11 at 20:52

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 6 down vote accepted

Use smbtree command to see all the clients & shared folders in a tree fashion.

share|improve this answer

I use findsmb It works similar to smbtree.

  • smbtree will show you a list of all available workgroups and clients under those work groups.

$smbtree
Enter usernames's password:

WORKGROUP1
    \\host1         
        \\host1\ADMIN$          IPC Service (SMB Server)
        \\host1\IPC$            IPC Service (SMB Server)
        \\host1\print$          
        \\host1\print           Printer
    \\host2                 
        \\host2\C$              Default share
        \\host2\ADMIN$          Remote Admin
        \\host2\Z$              Default share
WORKGROUP2
  • smbfind will show you a list of all client that are advertising them selves as available.

$findsmb

                            *=DMB
                            +=LMB            

IP ADDR | NETBIOS NAME | WORKGROUP/OS/VERSION

192.168.1.1 DOMAINHOST *[DOMAIN] [Windows 5.0] [Windows 2000 LAN Manager]

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.