IIRC the Linux kernel ignores the suid bit on scripts owned by privileged
users. (for security reasons). In case you write a small C program that
does the same, you'd be able to use the suid feature. 

Apparently there's some way to execute Perl scripts with suid root. Don't
recall exactly how though. 

Kala  
-----------
On Tue, Sep 12, 2000 at 09:05:14AM +0530, sreangsu acharyya typed:
> 
> would do something like this:write a one line script as root containing
> 
> echoe -e "127.0.0.1 /t $1">>/etc/hosts
> 
>  Give execute permission to all and set the suid bit. But now when i try
> to invoke it as a nornal user it says /etc/hosts permision denied. Whats
> wrong and how do i do it

----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to