NTFS External HD With ownCloud on the Raspberry Pi

In my case I want www-data to be the owner.

$ id -u www-data
$ id -g www-data

Say they both return 33 here is what you would add in /etc/fstab

/etc/sda1 /media/exthdd ntfs-3g defaults,uid=33,gid=33,fmask=007,dmask=007 0 0

 

Source: http://ja.cques.ca/blog/2013/09/25/ntfs-external-hd-with-owncloud-on-the-raspberry-pi/