LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2005, 11:22 AM   #1
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Rep: Reputation: 30
bin files


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.
 
Old 05-08-2005, 11:25 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
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.
 
Old 05-08-2005, 11:44 AM   #3
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
you legend!!! thanks man, im such a nOOber i had this same problem a while back, i can believe that i fell for the same trick twice!!! thanks again.
 
Old 05-08-2005, 01:11 PM   #4
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
Unhappy

humm i just checked changed my fstab to:

/dev/sda1 /home auto exec,users,rw,noatime 1 2

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
 
Old 05-08-2005, 08:58 PM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
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
 
Old 05-08-2005, 09:11 PM   #6
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
Thumbs up

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
.sit files and .bin files in Linux pierre24 Linux - Newbie 2 02-02-2005 07:55 AM
bin files IsildursHeir Linux - Software 2 12-12-2004 06:22 AM
How can I install Bin Files? or tg files? GeKsKe-XP Linux - Software 3 03-23-2004 03:54 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration