I have this problem: I'm used to compile and run .c files with codeblocks. If I do that from my Desktop (ext partition) it works without problems, but doing this from my secondary hard drive (NTFS partition) makes codeblocks to say permission denied while running a .c file.
I have read it's because of the partition type is it correct? But I don't know how to solve it.
I tried to editsudo gedit /etc/fstab adding this line: /dev/sda /media/Dati ntfs user,exec 0 1
but after rebooting Ubuntu I had a warning on boot about a problem mounting a drive, that's because I set KDE to auto mount my Dati drive on boot.
So I should auto mount my NTFS drive with execute permission? How can I do that?

readpermissions over that partition. That partition is from the same HDD that Ubuntu or is an external drive? – Lucio Jan 19 at 23:19