Mounting NTFS disk with rwxrwxrwx permissions

Kernels & Hardware, configuring network, installing services

Mounting NTFS disk with rwxrwxrwx permissions

Postby mikebzh44 » 2017-11-21 17:05

Hello.

I'm using Debian 9 Stretch and I'm stuck with my fstab line and a NTFS disk :(

I want to mount a NTFS disk with rwxrwxrwx permissions for directories and rw-rw-rw- permissions for files

So I add this line in /etc/fstab :

/dev/sdb1 /media/Storj ntfs rw,uid=1000,gid=1000,dmask=000,fmask=111 0 0

result :

dr-xr-xr-x 1 jeedom jeedom 4096 nov. 15 21:44 Storj

But dmask and fmask did not give me what I want :(

dmask=000 give me r-xr-xr-x should be rwxrwxrwx (777-000=777)
dmask=111 give me r--r--r-- should be rw-rw-rw- (777-111=666)
dmask=444 give me --x--x--x should be -wx-wx-wx (777-444=555)

Only dmask=777 give me --------- which is normal (777-777=000)

So my jeedom user cannot write to /media/Storj :(

What is wrong with my fstab line ?

Thanks for your help.
mikebzh44
 
Posts: 2
Joined: 2017-11-21 16:47

Re: Mounting NTFS disk with rwxrwxrwx permissions

Postby mikebzh44 » 2017-11-21 17:15

Solved by installing ntfs-3g package ;)
mikebzh44
 
Posts: 2
Joined: 2017-11-21 16:47


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable