Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: share usb drive (ntfs) via samba

  1. #1
    Join Date
    May 2011
    Beans
    5

    share usb drive (ntfs) via samba

    Hi guys. I finally have my ubuntu up and running.

    I have a USB-drive which is often connected to my ubuntu-machine. I want to share this via Samba but I can't set the user-rights. If I try to acces the file (via windows machine) I can see the directory but if I open it it gives me: \\Computer\media\directory is not accesible. You might not have permission to use this network resource.

    I tried setting the rights but it just 'changes back immediately'. I found some posts about not being able to set rights via ubuntu on a ntfs disk.

    If I mount it via fstab it will give an error when the USB-drive is not connected. So that's no option.

    Is there a way to share this drive via my Samba server?
    Oh, by the way. I did get acces to a partition on my linux-machine, to I assume my samba-settings are correct.
    Please help this ubuntu-newbie.

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

    Re: share usb drive (ntfs) via samba

    The external ntfs drive will mount with you as owner and with permissions for only you to access it. To fix that make the remote user look like you:

    Add the following line to your smb.conf file:
    Code:
    force user = your-user-name
    Where you put that line depends on what method of samba sharing you used. If you used usershare ( from Nautilus ) then put it in the [global] section. If you used the classical method then add it to the share definition itself within smb.conf.

  3. #3
    Join Date
    May 2011
    Beans
    5

    Re: share usb drive (ntfs) via samba

    Morbius1 your great. That did it!
    I've been trying and trying for days.
    Thanks a lot.

  4. #4
    Join Date
    Jan 2012
    Beans
    1

    Re: share usb drive (ntfs) via samba

    Quote Originally Posted by Morbius1 View Post
    The external ntfs drive will mount with you as owner and with permissions for only you to access it. To fix that make the remote user look like you:

    Add the following line to your smb.conf file:
    Code:
    force user = your-user-name
    Where you put that line depends on what method of samba sharing you used. If you used usershare ( from Nautilus ) then put it in the [global] section. If you used the classical method then add it to the share definition itself within smb.conf.
    Thankyou!
    after many hours trying to resolve this, finally!! this worked.

    I found this is only necessary when sharing content on ntfs volumes (ie. windows drives)

  5. #5
    Join Date
    Jul 2005
    Location
    Ottawa Canada
    Beans
    1

    Talking Re: share usb drive (ntfs) via samba

    So fact that the NTFS file system is on a USB device makes a difference. I have been puzzled about this for a day.

    Thank you

  6. #6
    Join Date
    Jun 2010
    Location
    Legoland, Germany
    Beans
    145
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: share usb drive (ntfs) via samba

    Quote Originally Posted by Morbius1 View Post
    The external ntfs drive will mount with you as owner and with permissions for only you to access it. To fix that make the remote user look like you:

    Add the following line to your smb.conf file:
    Code:
    force user = your-user-name
    Where you put that line depends on what method of samba sharing you used. If you used usershare ( from Nautilus ) then put it in the [global] section. If you used the classical method then add it to the share definition itself within smb.conf.
    Thanks, you are the MAN!
    How do you sudo?

  7. #7
    Join Date
    Jun 2009
    Beans
    1

    Lightbulb Re: share usb drive (ntfs) via samba

    Thank you

  8. #8
    Join Date
    Jun 2012
    Beans
    1

    Re: share usb drive (ntfs) via samba

    Thanks!

    Worked perfectly. I also struggled for two days....but learned a lot.

  9. #9
    Join Date
    May 2007
    Location
    Munich Germany
    Beans
    100
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: share usb drive (ntfs) via samba

    Quote Originally Posted by Morbius1 View Post
    The external ntfs drive will mount with you as owner and with permissions for only you to access it. To fix that make the remote user look like you:

    Add the following line to your smb.conf file:
    Code:
    force user = your-user-name
    Where you put that line depends on what method of samba sharing you used. If you used usershare ( from Nautilus ) then put it in the [global] section. If you used the classical method then add it to the share definition itself within smb.conf.
    Thanks. I think you already know that you helped a lot of users out there, but I am sure you still like to hear from them...so, again:

    Thanks a lot!
    Intel i5 6500 | MSI z170a Gaming M5 | Corsair Vengence LPX 16Gb DDR4 @ 2400 | MSI GTX 970 gaming 4G | Ubuntu 15.10 Wily Werewolf / Windows 7

    http://ubuntutechnical.wordpress.com/

  10. #10
    Join Date
    Sep 2011
    Beans
    2

    Re: share usb drive (ntfs) via samba

    Forgive me for being a complete moron when it comes to ubuntu, but I can't seem to edit the smb.conf file by opening it via the file menu.

    Can anyone offer me step by step instructions on how to do allow other computers on my network to share my USB NTFS drives? I'm using Ubuntu 11.04 (classic desktop).

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •