ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello all im trying to run some c++ files that i have made, i.e. simple hello world applications every time i type ./myapp i get this permission denied nonsense i have set the permissions correctly, and i have tried running them as root still nothing. has anyone got any other ideas?? cheers, trscookie.
If you're 100% positive you have execute permissions on the file, then I would suggest cracking open your /etc/fstab file. Look up the entry for the partition that holds your executable, and look at the options (fourth column). If you see "noexec" in the list, then the system is set up to prevent executing any file on that partition... period. That's sometimes done for FAT32 partitions by the distro installer.
and then re-mounted, and i get the same problem, however if i copy and past the bin files to my / directory on /dev/hda1 they run fine?!? have you got any other ideas?? cheers
What you describe sounds like the noexec attribute is still active (assuming you had to modify the entry in /etc/fstab).
Now, when you say you remounted it, did you mount it again at another spot in the filesystem, mount it on top of the other mount, mount with the remount option, or a full umount & mount routine?
I would suggest doing the full umount. If that doesn't work, I'm not sure what else to suggest. There's always the reboot option
erm i umounted then remounted sorry i didnt explain properly though i did a re-install coz i cocked up my ati drivers, but it worked after that, but thank you for your help all the same.....again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.