Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sometimes I find directories that I left shared a long time ago but forgot to un-share. Is there a way to see a list of all my shared folders so I can remove folders that I no longer need to be shared? I'm using Maverick Meerkat.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

If you browse your own machine in the Network section of Nautilus, you should see all the shares.

share|improve this answer
In Nautilus, the is a "Browse Netwrok" Item in the sidebar. Inside it, there is only one item: "Windows Network" and inside it there is only one item: "WORKGROUP". If I double click WORKGROUP it asks me for user name and password and if I enter my user name and password for my Ubuntu, it does not accept it! Can you help? – PHP Learner Aug 2 at 12:04

Hit Alt+Ctrl+T to open terminal and run the following command:

share|improve this answer
I tested this command, but it only shows: WORKGROUP \\ host-name server (Samba, Ubuntu) – PHP Learner Aug 2 at 12:08

go to list folder


check the path

share|improve this answer
Under this path (/var/lib/samba/usershares) only some of my shared folders are available. In other machine there is other folders shown under my machine such as: My Printers, print$ and IPC$ which are not listed in the pass in your answer! – PHP Learner Aug 2 at 12:07

Use this command: smbclient -L localhost. A sample of its output is as follow:

Enter username's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

    Sharename       Type      Comment
    ---------       ----      -------
    print$          Disk      Printer Drivers
    IPC$            IPC       IPC Service (host-name server (Samba, Ubuntu))
    hp1320          Printer   Hewlett-Packard hp LaserJet 1320 series
    HP-LaserJet-1200 Printer   HP LaserJet 1200
    Public          Disk      
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

    Server               Comment
    ---------            -------
                         host-name server (Samba, Ubuntu)

    Workgroup            Master
    ---------            -------
    WORKGROUP            HOST-NAME
share|improve this answer

Your Answer


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.