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: Select all
UUID=ALPHANUMERICVAL /media/myusername/Data ntfs-3g defaults 0 0
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: Select all
UUID=ALPHANUMERICVAL /media/myusername/Data ntfs-3g defaults,dmask=022,fmask=133,uid=1000,gid=1000,permissions,windows_names 0 0
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?