Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

 
discard

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.