Dears,
sorry about my off-topic, but! it's only ask... below its follow my little doubt...
[root@jaspion tmp]# cat -n prog.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int main(void)
5 {
6 printf("huhu! o/\n");
7 return;
8 }
[root@jaspion tmp]# cc -o prog prog.c
[root@jaspion tmp]# ./prog
huhu! o/
[root@jaspion
tmp]# ls -l prog
-rwxr-xr-x 1 root root 6648 2007-07-21 11:21 prog
[root@jaspion tmp]# chmod 744 prog
[root@jaspion tmp]# ./prog
huhu! o/
[root@jaspion tmp]# su jorge
[jorge@jaspion tmp]$ ./prog
bash: ./prog: Permission Deny
[jorge@jaspion tmp]$ ls -la prog
-rwxr--r-- 1 root root 6648 2007-07-21 11:21 prog
[jorge@jaspion tmp]$ /lib/ld-linux.so.2 ./prog
huhu! o/
[jorge@jaspion tmp]$
it's bug? or the "ld-linux" read the elf and execute? so, dynamic linker/loader?
--
Regards,
+ ---------------------------------------------------------------------------------+
Jorge Pereira, From: Olinda/Pe/Brazil
Home: http://www.jorgepereira.com.br/
E-mail: jpereiran@xxxxxxxxx,
jorge@xxxxxxxxxxxxxxxxxxx
Mobile: +55 (81) 8833-2484
My Public Key: http://www.jorgepereira.com.br/public.pgp
+ ---------------------------------------------------------------------------------+
"Se você ama alguma coisa, liberte-a;
Se ela não voltar a ti, cace-a e mate-a."
+----------------------------------------------------------------------------------+