httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tempo <>
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 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 ?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message