I have a file hello.c with "hello world" program in C. I also done the following on the shell (UNIX):
$ ls > 1
$ chmod 0 1
$ cc -o hello hello.c
$ chmod 400 hello
$ ./hello > 1
And I got permission denied on 1.
Why I didn't get the permission denied error on hello?