So for convenience, I store all my data on my Windows partition so that I can access my data easily from both Linux and Windows. However, I tried compiling a C++ program with g++, and found out that I cannot run the program with ./program_filename
, as it tells me
bash: program_filename: Permission denied
Doing
cp program_filename ~/program_filename
and running it from my home directory works just fine, however.
So I tried chmod +rwx program_filename
, but ls -l
shows that the permissions are still set as -rw-------.
for all files in the directory. Nothing changes when I do this as root, either.
Is there a simple fix for this?
(In case it's useful, I am running Fedora 16 x64)