httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Gifford <sgiff...@suspectclass.com>
Subject Re: [users@httpd] how to run a root programme from apache server
Date Thu, 01 Sep 2005 15:31:02 GMT
Anatoly Pugachev <mator@rootshell.ru> writes:

> On Thu, Sep 01, 2005 at 11:02:31AM -0400, Scott Gifford wrote:
> | Arun Naik <arun.naik@flextronicssoftware.com> writes:
> | 
> | > Hi,
> | > I have to run a program from apache server, whose owner is root. As apache
> | > server runs from user apache, it is not able to run the program ( owned by
> | > root). Is there any way out ?
> | 
> | If the program needs to run *as* root, it would need to be setuid,
> | which is very dangerous if not done with extraordinary care.
>
> or you can try to use sudo with apache user set to NOPASSWD in
> sudoers and allowing to run only this command. default sudoers file
> have examples on this.

This is still very dangerous if not done with extraordinary care.

----Scott.

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