(sudo nautilus is *always* a bad idea. Even if it does work it will wreak havoc with permissions and ownership in your home directory, and thus break other stuff. So make a good habit of keeping to gksudo for graphical programs.)
NTFS doesn't speak in terms of executable or not, as Windows goes by file extension instead. If you rename a text file to .exe, Windows will consider it executable (though it will obviously crash immediately). So to be able to give executable permissions to files on NTFS partitions in linux (and other UNIX-like operating systems), when mounting it you decide what file mask and directory mask (or umask combined) to apply to all files and directories in it. Unless specified manually in /etc/fstab or when mounting it yourself, it assumes some defaults defined someplace I don't know about.
These masks are basically your normal file permissions, so a file that can be read by all, written to by all and executed by all would be rwxrwxrwx. Only these masks are in octal and work backwards, so instead of such rwxrwxrwx files having a mod of 777, they have 000. Files having rwxr-xr-x "should" have 755, but in this case they have 022. The same applies for directories, and directories that cannot be executed cannot be entered.
My NTFS mounts look like this (again, in /etc/fstab);
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/isw_dhgifcega_vertex7 /main ntfs defaults,umask=007,uid=1000,gid=1000 0 0
UUID=1286AD9186AD75BF /storage ntfs defaults,umask=007,uid=1000,gid=1000 0 0
/dev/mapper/isw_dhgifcega_vertex2 /w7 ntfs defaults,umask=007,uid=1000,gid=1000 0 0
umask is, as mentioned above, file mask and directory mask combined. You can split it into fmask and dmask for more fine-grained control.
So a umask of 007 translates to a mod of 770, or rwxrwx--- for all files and directories. My user and my group can read, write to and execute all files and directories on those partitions. Other users cannot access them at all.
As another example;
Code:
/dev/mapper/isw_dhgifcega_vertex2 /w7 ntfs defaults,fmask=044,dmask=055,uid=1000,gid=1000 0 0
With these masks, my user has full permissions, while my group and other users can only read files, and read+execute directories.
Bookmarks