Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

System and Network configuration • NTFS-3G proper way to mount (fstab)

$
0
0
Hi community,

I have 3 drives on my system - one for debian (EXT4), one for windows (NTFS) and another for shared data storage (NTFS). I want to mount the data drive while using debian. The first way I did it was using the default settings,

Code:

UUID=ALPHANUMERICVAL/media/myusername/Datantfs-3gdefaults00
This resulted in all the files in the data drive owned by root and having rwx permissions for all users (777). This to me looks like a huge security risk (Pardon me if my understanding is flawed). So I decided to use the following method,

Code:

UUID=ALPHANUMERICVAL/media/myusername/Datantfs-3gdefaults,dmask=022,fmask=133,uid=1000,gid=1000,permissions,windows_names00
This changed the ownership to the user and reset the permissions to 755 for directories and 644 for files in the data drive. However, if I were to add executable permission to a particular file using chmod, It wouldn't work. The permission still remain 644. In essence, I'd like to use the the NTFS drive just like a normal linux partition (ie. capable of managing file permissions - I thought the permissions option in the fstab did that). So how can I change my mount options in fstab to achieve this? Is that even possible?

Statistics: Posted by neongashmen — 2024-12-14 09:12 — Replies 9 — Views 148



Viewing all articles
Browse latest Browse all 3260

Trending Articles