C++ Linux, Permission denied when on Windows’ D: drive

I am new to linux and am trying to run C++ programs stored on my Windows D: “Data” drive on a dual booted computer. The hello world program runs fine from my home folder but gives the error

bash: ./hello_world: Permission denied

when in the Data folder. I don’t understand the details of mounting but from reading around it seems like this might be the problem? I always simply navigate to it with

cd /media/username/Data/

so have never used actual mounting commands (or any permission commands for that matter).

How can I change permissions so that I can run programs on that drive, and importantly can I set this to always happen rather than it being a necessary process for every login or every program?

Thanks in advance!


Source: linux

Leave a Reply