Results 1 to 6 of 6

Thread: Samba - Current Shares List

  1. #1
    Join Date
    Sep 2007
    Beans
    9

    Samba - Current Shares List

    I've searched the forums and the Ubuntu documentation for quite a while without finding anything significant on the following issue.

    Assume somebody creates a Samba share using Nautilus (right click Sharing option on a folder in Nautilus). Then that somebody forgets what was the folder they shared; so they cannot "unshare it". Is there a file or an application that shows what filesystem directories are shared and under what names? I looked in /etc/samba/smb.conf, but that doesn't show shares created with Nautilus. I've also searched all ASCII files in /etc and /var for a specific share name and couldn't find anything. Any idea how to go about this?

  2. #2
    Join Date
    Sep 2006
    Location
    Victoria, Australia
    Beans
    Hidden!

    Re: Samba - Current Shares List

    hi there,
    try running
    Code:
    smbclient -L <ip or hostname>
    so if it is your own box, just run smbclient -L 127.0.0.1

    AJ
    Want to find out more about your ubuntu system? see HowTO Ubuntu System
    Want to know a little more about networking? see HOWTO Ubuntu Networking
    Looking for help with something on your ubuntu? see the tutorial of the week sticky


  3. #3
    Join Date
    Sep 2007
    Beans
    9

    Re: Samba - Current Shares List

    Yes, that will show the list of shares on my machine; however, if I have a share called "shared_dir" I still have no idea where it is on the filesystem if the share name is not the same with the shared directory name.

    To be more specific, if I have a directory like /path/to/a/random/directory/name and I share it as "shared_dir", I can see that I have it shared as "shared_dir" but if I don't know what's the path to it on the filesystem (i.e. /path/to/a/random/directory/name) there is no way I can "unshare it".

  4. #4
    Join Date
    Sep 2007
    Beans
    9

    Re: Samba - Current Shares List

    Anybody else?...

  5. #5
    Join Date
    Apr 2006
    Beans
    404
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Samba - Current Shares List

    Hit Alt+F2 on your keyboard, and type in "shares-admin" without the quotes, and hit the ENTER key. You'll find a list of shared folders there.

    Edit: Forgot to mention that the share name is in the Properties window (click on a share, and click Properties).
    - javaJake

  6. #6
    Join Date
    Sep 2007
    Beans
    9

    Re: Samba - Current Shares List

    On my computer, if I go to any folder, right click it and share it from "Sharing", then open "shares-admin", the share doesn't turn up there. I can only assume that shares-admin shows the shares from /etc/samba/smb.conf, although I haven't tested that. My question was, where does Nautilus keep its shares list???... I think it's extremely unlikely that Nautilus uses anything else than Samba for file sharing, and then if it uses Samba, how does it tell Samba to share those folders?

    Going back to my problem - if I have a shared folder and I no longer remember where it is located on the file system, how do I unshare it?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •