Portál AbcLinuxu, 14. května 2024 04:51
[anms@tbird tmp]$ su Password: [root@tbird tmp]# cp /bin/bash ./bash [root@tbird tmp]# chmod u+s ./bash [root@tbird tmp]# ls -la celkem 537 drwxr-xr-x 2 anms users 1024 srp 27 21:16 . drwx------ 62 anms users 3072 srp 27 21:16 .. -rwsr-xr-x 1 root root 541096 srp 27 21:16 bash [root@tbird tmp]# file ./bash ./bash: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped [root@tbird tmp]# exit [anms@tbird tmp]$ ./bash bash-2.05a$ id uid=500(anms) gid=100(users) skupiny=100(users) bash-2.05a$
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.