[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: suid



On Wed, 11 Feb 1998, Erez Doron wrote:
>i did chmod 755 filename
>the chmod +s filename
>so ls gives -rwsr-sr-s 1 root root 8101 feb 11 18:01 filename*
-rwsr-sr-x you mean?
>
>so how do i make my script suid root ?
AFAIK, in Linux you don't. Setuid shell scripts are BAD. For a number 
of reasons. There was various hacks to implement the thing securely, but
generally the answer is no. You may try to use suidperl, or compile C
program (taking all precautoins one takes writing suid program). Or just
think - do you really need it to be suid root?
--
frodo@sharat.co.il	\/  There shall be counsels taken
Stanislav Malyshev	/\  Stronger than Morgul-spells
phone +972-2-5369213	/\  		JRRT LoTR.
http://www.sharat.co.il/frodo/   whois:SM719-RIPE@whois.ripe.net