httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tanmaya Anand" <tanm...@techie.com>
Subject [users@httpd] setuid script problem
Date Fri, 09 May 2003 11:11:54 GMT
hi all,

i have created the follwing perl script:

#!/usr/bin/perl -w

system "/usr/local/apache2/cgi-bin/public_html/changenameserver.pl";
print "content-type:text/html \n\n";
print "done";

following is the changenameserver.pl script:

#!/usr/bin/perl

$ENV{'PATH'}="/bin:/usr/bin";
$ENV{'IFS'}=''if $ENV{'IFS'} ne '';

system "service network restart";
exit(1);

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.

Following error message i printed to apache error log:
"user cannot control this device"

both the above scripts are owned by user root

can anyone help me in this????


Regards,
Tanmaya
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


---------------------------------------------------------------------
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