LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fmask dmask for ntfs-3g (https://www.linuxquestions.org/questions/linux-newbie-8/fmask-dmask-for-ntfs-3g-949222/)

Eerie 06-08-2012 08:31 AM

fmask dmask for ntfs-3g
 
I'm trying to set-up my windows media partition so that everyone can access it and play media, but only root can make changes.

ie. I desire:
Code:

drwx-r-x-r-x
In my fstab it currently looks like this:
Code:

/dev/sda1        /win1            ntfs-3g    fmask=177,dmask=077 1  0
and the permissions look accordingly:
Code:

drwx--------

maccas17 06-08-2012 12:16 PM

I think you mean:

Code:

drwxr-xr-x
Try adding the following to your fstab:

Code:

/dev/sda1        /win1            ntfs-3g    umask=022 1  0
The two entries you have are removing read write access for everybody except the owner.

You can create user mappings with the NTFS-3G driver between Windows and Linux to give you some flexibility in managing permissions at a more granular level. Have a look at:

http://b.andre.pagesperso-orange.fr/usermap.html

Hope this helps.


All times are GMT -5. The time now is 02:25 AM.