Ubuntu – Why does Ubuntu refuse to execute files from an NTFS partition

executablefilesystemfstabntfspermissions

I mount an NTFS partition (where I've got some Linux binaries and scripts alongside with Win32 and data files) with the following fstab line:

/dev/sda5 /mnt/dat ntfs-3g rw,dev,exec,auto,async,users,umask=000,uid=1000,gid=1000,locale=en_US.utf8,  errors=remount-ro 0 0

All files seem to have executable attribute set then, but if I try to actually execute them, I get "Permission denied" error. Even with sudo. Even while execute (as well as read and write) permissions are granted to everyone and all the files owner is set to the user.

So how do I set the system up to be able to run Linux binaries from NTFS?

Best Answer

I had the exact same problem and the solution in my case was to write de exec mount option after the users option. That's because the users option implicitly activate the noexec option, so you have to explicitly specify exec.

I got this from "Why can't I run programs on another partition in Linux?" on Unix & Linux Stack Exchange.

Related Question