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 have an NTFS partition I use to share data between Ubuntu and Windows on /dev/sda5.

I am wondering if there is a way to make it readable by user (on a single user computer) but only write-able by root.

Basically all I want is to be able to listen to the music files in my player, for example, but have them be unable to be altered or deleted without sudo-ing.

Is this possible through fstab?

My current fstab entry:

/dev/sda5 /media/disk ntfs defaults,uid=1000,gid=1000,noatime 0 0

I imagine it is some sort of umask command or change in uid or gid, but I can't figure it out so far.

share|improve this question
up vote 2 down vote accepted

In /etc/fstab:

/dev/sda5 /media/disk ntfs-3g defaults,uid=0,gid=0,fmask=0022,dmask=0022,noatime
share|improve this answer
Thanks, that does the trick! – Matt Oct 22 '12 at 15:55

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.