I have mounted my flash drive to a new mount point inside my home folder. However, when I still try to compile my .cpp file, it tells me permission denied. How can I fix this?
1) In GParted, my flash drive is referred to as /dev/sdc1
. And here, under the Mounte Pointe label, it says the path is /home/myName/newMount
2) So when I open my home folder, I see the newMount folder, and inside are all the contents of my flash drive. However, when I try to compile a program, it won't let me. Here are the steps I take:
$ cd newMount
$ cd test
(test is the C++ folder containing my program)$ g++ -std=c++11 test.cpp -o test
$ ./test
And by running the mount
command, I am getting this line of text from my flash drive: /dev/sdc1 on /home/myName/newMount type vfat (rw,noexec,nosuid,nodev,fmask=0022,dmask=0000)