Mount NTFS in Linux and Compatible with Window
2019-02-04
Tech
682
Permission Control for NTFS
We often encounter the problem that to mount NTFS under Linux means no permission control. But that is not true.
According to JanC's Answer on AskUbuntu:
Contrary to what most people believe, NTFS is a POSIX-compatible filesystem, and it is possible to use permission on NTFS.
The First Trial
First let's just open /etc/fstab and see how partitions are mounted.
$ sudo nano /etc/fstab
In my situation, the NTFS partitions are mounted as followed:
/dev/sda1 /mnt/NTFS1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/sda2 /mnt/NTFS2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
The nosuid keyword prevents setting uid on filesystem. So the First step is to remove this keyword.
However, once this keyword is removed, an uid and a gid must be given to setup the permission control. By default, the current uid and the current gid will be used. We can also specifiy