httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tempo <te...@tempo.dyndns.org>
Subject Re: [users@httpd] setuid script problem
Date Fri, 09 May 2003 17:18:07 GMT
>
>
>i have set "u+x" & "u+s" permissions for the script changenameserver.pl. but still
the command "service network restart" is not getting executed when i access this script via
web browser.
>
>  
>

SUID (+s) bit can only work on a binary file, but not on scripts.
You can change your perl CGI for a compiled one (do the same work in c) 
, or (perhaps better) use a 'su - root' command into your perl code 
(you'll have to store root password into the script...). Other ideas ?

Frederic TEMPORELLI



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message