[linux] suid a kernel
Matus "fantomas" Uhlar
uhlar na fantomas.sk
Pondělí Červenec 15 17:45:28 CEST 2002
-> [root na armageddon tmp]# ls -l t*
-> -rw------- 1 root root 20 júl 15 17:14 tajne
-> -rwsr-xr-x 1 root root 22 júl 15 17:19 test*
-> [root na armageddon tmp]# cat test
-> /usr/bin/less ./tajne
-> [root na armageddon tmp]# cat tajne
-> toto je tajny subor
-> [root na armageddon tmp]# su user
-> [mtoth na armageddon tmp]$ ./test
-> tajne: Permission denied
->
->
-> rovnaky vysledok aj pomocou tcsh, chyba bude zrejme velmi idiotska. Nemoze
-> ma niekto nakopnut?
ale samozrejme... man bash ; man tcsh
pre bash pouzivaj #!/bin/bash -p
tcsh tusim vyzaduje #!/usr/bin/tcsh -b
-> > urcite nie, ale ak ti nieco dropuje privilegia tak to bude bash2 ;)))
--
Matus "fantomas" Uhlar, uhlar na fantomas.sk ; http://www.fantomas.sk/
Warning: I don't wish to receive spam to this address.
Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
Quantum mechanics: The dreams stuff is made of.
Další informace o konferenci linux