Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I managed to share stuff from my Ubuntu 12.04 to my private network, and the data is visible from a Windows machine. I even shared a hdd that has windows on it. So everything seems to work fine.

When I want to share a mounted device (USB pen drive, USB HDD... etc) however, I get from the Windows machine: Access denied on file \...

I realize that this is due to the missing rights on the mounted folder. By default a mounted folder gets the equivalent of 700 : drwx------, and the owner myself. But, I can't seem to change the rights on the external device... they remain 700.

Is there a special trick I need to do in order to share NTFS mounted usb devices?


P.S. from this Question I see that NTFS devices can not be this true? It's a bit strange, because I have in my PC 2 HDD's with 3 NTFS partitions, and I can share them without a problem.

share|improve this question
up vote 5 down vote accepted

I found the solution, if anybody cares:

The external NTFS drive mounts with me as owner and with 700 permissions, meaning that only I can access it. I found a tip on the ubuntu forums from Morbius1 that I can force the incoming connection to look like me by adding the following line in /etc/samba/smb.conf, in the shared section:

force user = your-user-name

It works great.

share|improve this answer
This worked, however I use my system as root. Is there a trick to changing the mounting privileges and owner. I am worried about all users having root privileges – Stevie G Feb 8 '14 at 15:23

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.