in infinite wisdom santosh dubey spoke thus On 12/07/2005 09:13 PM:
> Dear all,
>
> I want to run a script as root. (setuid bit is set for root). But apache is
> not executing this script.
> I used #!/usr/bin/perl -wT as suggested by Mithun. But no result.
What does apache error log file says? What do you get in the output page?
> I don't have suidperl installed and i cannot rebuild server to run as root.
> Is it possible to run such scripts from apache.?? if yes then how to do
> that?
Have a look at sudo. Add apache to sudoers file (to run just that
particular command) and allow it to run without supplying any password.
What is it that you want to accomplish that you need to run a script as
root ?
--
_.-, raj shekhar
.--' '-._ http://rajshekhar.net
_/`- _ '. http://rajshekhar.net/blog
'----'._`.----. \
` \; WE APOLOGIZE FOR THE INCONVENIENCE
;_\ -- God's Last Message to his Creation
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/