When I ssh into my computer, files I create on the main hard drive are owned by me:
$ touch test
$ ls -l test
-rw-r--r-- 1 smithty domain users 0 Aug 16 17:26 test
But when I move into a folder that's on a second hard drive, everything I create is owned by root as default:
$ cd data
$ touch test
$ ls -l test
-rwxrwxrwx 1 root root 0 Aug 16 17:28 test
I assume this is because I'm doing something wrong when I mount this drive, but I'm not sure what. I use the following config in /etc/fstab
:
UUID=A88667B486678224 /media/data ntfs rw,nosuid,dev,exec,auto,nouser,async 0 2
I originally used the defaults
option, but thought that shifting to nosuid
would fix this. It hasn't though. Have I done something wrong in my fstab, or is there something else amiss.
This is on Ubuntu 14.04.1. My login shell is dash, but the problem is the same if I switch to bash.