Kenneth Massada bio photo

Kenneth Massada

..

Twitter Google+ Github Stackoverflow

If you stumble upon this, you are probably trying to mount ntfs on linux, or have tried to change folder or file permissions but they remain the same. Or you have gone through tutorials for mounting your NTFS partition, created it with your user and group, but it remains root and plugdev. The answer you are looking for is simple

There are no Linux ownership or permission bits in an NTFS file system. 

The process is the following

$ sudo mkdir /Kenneth
$ sudo chown ken:kengroup /Kenneth
$ sudo chmod 755 -R /Kenneth

Now you find the uuid of the device by running

$ sudo blkid
/dev/sda6: UUID="HEXDECIMALNUMBER" TYPE="ntfs"

let's also find your user id, you might need it

$ id
uid=1000(ken) gid=1000(kengroup)

Now we edit the fstab so you can mound during boot

$ sudo vi /etc/fstab
UUID=HEXDECIMALNUMBER       /Kenneth        ntfs-3g    defaults,uid=1000,gid=1000,umask=022 0       2

this is simple, we are only allowing uid of ken, and gid of kengrp to have exclusive rights to the drive with the umask value of 022 ie default access permission for your files of 664 (rw-rw-r--) and for your directories of 775 (rwxrwxr-x)

now that this is edited, you can simply mount by doing

$ sudo mount -a
$ ls -ld /Kenneth/
drwxrwx--- 1 root plugdev 20480 Jul 20 17:31 /Kenneth/