binary file not running

Ian Malone ibmalone at gmail.com
Thu Aug 11 10:58:16 UTC 2011


On 11 August 2011 10:13, Markku Kolkka <markkuk at tuubi.net> wrote:
> shailesh kirjoitti viestissään (lähetysaika torstai, 11. elokuuta
> 2011):
>> [tommy at tommy cprog]$ gcc hello.c
>> [tommy at tommy cprog]$ ./a.out
>> bash: &nbsp;./a.out : Permission denied
>
> Is your "cprog" directory on an USB stick, external hard drive,
> or some other media other than regular Linux filesystem on a hard
> drive?
>

Good suggestion, possibly a noexec mounted filesystem? Always baffling
if you forget to check (especially with scripts as the error is then
about an invalid interpreter rather than permissions IIRC).

-- 
imalone


More information about the users mailing list