NTFS doesn't support the execute permission because it's designed for Windows, which doesn't have the same concept of "executable" files as Linux does. If you're trying to run Windows .exe files in Wine, it should still work if you run wine explicitly, like this:
wine /path/to/executable.exe
If you do need to execute files directly, you can set the permissions that will be applied to all files with the fmask
option in /etc/fstab
. You may also need to add the exec
option if that's not the default for NTFS (I don't have a drive handy to check right now). The value for fmask
tells the driver which bits to turn off, so, for example, to allow read, write, and execute for all users, you should have something like this:
/dev/hda1 /mnt/windows ntfs-3g defaults,exec,fmask=000 0 0
If there's already an fmask
option, the simplest way to turn on the execute bit is to subtract 1 from any digit that's odd.
If you don't know how permission masking works, the basic idea is that the read, write, and execute permissions are represented by the values 4, 2, and 1 respectively. You can add them together to combine permissions so, for example, reading + writing would be 6. The permission mask is a combination of three digits that apply to the owner, group, and "others" (everyone else).
Just remember that fmask
(also, umask
and dmask
) in fstab are the permissions you want to turn off.
As a slightly more interesting example, this would set the permissions to "rwx" for the owner, "rx" for the group, and "r" for everyone else:
/dev/hda1 /mnt/windows ntfs-3g defaults,exec,fmask=023 0 0
Best Answer
On Linux partitions, in Linux (example: ext4, reiserFS)
In Linux, if you don't have the ownership of a file, you wont be able to change the permissions. You can use sudo to change the permissions for a file you don't own.
It is possible to launch Nautilus as root by doing alt+F2, then:
gksudo nautilus
The system will ask for your password. This way, you can change any permission on any file. Take care, it is possible to change permissions or delete system files too!
On Windows partitions, in Linux
On partitions like NTFS and Fat, there are not so many rights like in Linux/Unix filesystems:
Your case
Once a file from a NTFS partition is copied on your desktop, it is on a Linux partition like Ext4. So the file can be managed the Linux way, with all the options about owner, group, other, read, write, execute.