Results 1 to 3 of 3

Thread: Sharing a folder from a USB drive

  1. #1
    Join Date
    Apr 2007
    Location
    Canberra Australia
    Beans
    46
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Sharing a folder from a USB drive

    Hello,

    For many months I was using a Lacie NAS for all the shared files on our home LAN. It broke last Friday and is being repaired under Warranty. I got all the files off and put them on a USB drive and now want to share them via a Ubuntu 9.10 PC.
    I can share a folder in "home" but I cannot share a folder on the USB drive and get the following errors "Unable to mount location" and "Failed to mount Windows share"

    I do exactly the same set for both.

    any ideas?

    Paul

  2. #2
    Join Date
    Dec 2009
    Beans
    6,772

    Re: Sharing a folder from a USB drive

    You didn't state how your usb drive is formatted or what method of file sharing your using - there are two.

    It's likely that this isn't a samba problem but a linux file permissions problem. For example, if it's formatted in FAT32 or NTFS it's going to mount with you as owner and read / write permissions to you only.

    You may have set up your share to allow guest access but no matter how hard samba tries to allow guests to access it nothing can override linux file permissions.

    If you set up your share using Nautilus-share ( right click folder > sharing options ) then:

    Open Terminal
    Type gksu gedit /etc/samba/smb.conf

    Add the following line to the [global] section of smb.conf:
    Code:
    force user = morbius
    Change morbius to your local login user name

    Save the file, exit gedit, and back in the Terminal type:

    sudo service samba restart

    If you used Classic-share ( where the share definition is in smb.conf itself ) then you need to add that line to share definition and not the global section.

  3. #3
    Join Date
    Apr 2007
    Location
    Canberra Australia
    Beans
    46
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Re: Sharing a folder from a USB drive

    Thank you for your reply.

    You are correct about the permissions issue. As this is only a temp issue till my NAS comes back from repair I will give the kids the USB drives with their files.

    Thank you again

    Paul

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
  •