binary file not running

Paul Allen Newell pnewell at cs.cmu.edu
Thu Aug 11 05:36:02 UTC 2011


On 8/10/2011 10:06 PM, Joe Zeff wrote:
> On 08/10/2011 08:57 PM, shailesh wrote:
>> #include<stdio.h>
>> int main()
>> {
>> printf("hello");
>> return 0;
>> }
>>
>>
>> [tommy at tommy cprog]$ gcc hello.c
> chmod o+x a.out
>> [tommy at tommy cprog]$ ./a.out
>> bash:./a.out : Permission denied
On F14 x86-64 (more info on request):

[paul at yoyo ~]$ vim hello.c
[paul at yoyo ~]$ more hello.c
#include<stdio.h>
int main()
{
printf("hello");
return 0;
}

[paul at yoyo ~]$ gcc hello.c
[paul at yoyo ~]$ ls -F a.out
a.out*
[paul at yoyo ~]$ ls -Falt a.out
-rwxrwxr-x. 1 paul paul 6435 Aug 10 22:32 a.out*

I am seeing a gcc make a.out a+x ... unless I am mistaken, we should be 
asking why isn't OP ???

Paul



More information about the users mailing list