bash: ./a.out: Permission denied

Andre Robatino robatino at
Wed Oct 19 17:20:11 UTC 2011

Joe Zeff <joe <at>> writes:
> On 10/19/2011 09:50 AM, shailesh wrote:
> > when i try to run compiled c program ("./a.out") get error
> > bash: ./a.out: Permission denied
> Files aren't automatically executable under Linux.
> chmod u+x a.out
> ./a.out
> will get you what you want.

But the question remains as to why it wasn't executable originally. On my F15
box, "gcc hello.c" results in a.out with perms 775 (using the default umask of

More information about the users mailing list