You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by apache <ap...@hotresponse.com> on 2002/03/09 23:13:26 UTC

Command Started by Apache Uses Root User

Hi,

I use Apache web server and perl cgi's and modules to start a shell script
which runs a simple ssh command:

/usr/local/bin/ssh  $dest rm -r /directory/tree/to/be/removed

This works fine from the command line.  However, when run from the web
server, it runs as user 'root' and fails.  The error return code is 255. 
Root  is
used to start apache and "User siteadm" is in the configuration file.

Any ideas?  Thanks!

Bob Foster


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org