Portál AbcLinuxu, 6. prosince 2025 04:40
rimmer@reddwarf /home/files/0 $ l
total 4
drwxr-xr-x 2 rimmer users 72 Oct 8 13:20 ./
drwxr-xr-x 7 rimmer users 168 Oct 8 13:18 ../
-rw-r--r-- 1 rimmer users 63 Oct 8 13:20 h.c
rimmer@reddwarf /home/files/0 $ gcc h.c
rimmer@reddwarf /home/files/0 $ l
total 16
drwxr-xr-x 2 rimmer users 96 Oct 8 13:21 ./
drwxr-xr-x 7 rimmer users 168 Oct 8 13:18 ../
-rwxr-xr-x 1 rimmer users 8255 Oct 8 13:21 a.out*
-rw-r--r-- 1 rimmer users 63 Oct 8 13:20 h.c
rimmer@reddwarf /home/files/0 $ ./a.out
bash: ./a.out: Permission denied
rimmer@reddwarf /home/files/0 $ cat h.c
#include <stdio.h>
int main() {
printf("hello world!\n");
}
rimmer@reddwarf /home/files/0 $ ./h.c
bash: ./h.c: Permission denied
rimmer@reddwarf /home/files/0 $
./h.c spoustim jen abych ukazal, ze ./a.out vypisuje stejnou vec... a.out a na zacatku je tam ELF , takze by snad mel bejt vytvorenej spravne.chmod u+x a.out ./a.out man chmod man chown
mount
nemáš náhodou /home mountnuté jako noexec ?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.