You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joe Smith <bl...@mail.sis.pitt.edu> on 2004/10/06 17:35:07 UTC
[users@httpd] apache2/suexec question
Hello. As a very new user of apache I am attempting to configure
suexec the execute as the file owner various CGI scripts. However
I seem to be encountering a configuation problem with suexec; the
error that is logged for a test script appears as follows
[Wed Oct 06 11:07:51 2004] [error] [client 136.142.116.9] (13)Permission denied: file permissions deny server ac
cess: /home/joeuser/public_html/cgi-bin/printenv.cgi
The file itself is protected 711, and my wish is to have it processed
by suexec using the users login UID, as opposed to merely displayed
as occurs when the file permissions are set to 755.
Any assistance would be very appreciated.
regards
Peter Wilson
blackice@mail.sis.pitt.edu
An suexec -V yeilds the following
# suexec -V
-D AP_DOC_ROOT="/opt/infoserve/apache2/htdocs"
-D AP_GID_MIN=500
-D AP_HTTPD_USER="webserve"
-D AP_LOG_EXEC="/opt/infoserve/apache2/logs/suexec_log"
-D AP_SAFE_PATH="/usr/bin:bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"
The httpd.conf file that is being tested is enclosed as an attachment.
--
blackice@mail.sis.pitt.edu
Re: [users@httpd] apache2/suexec question
Posted by Joshua Slive <js...@gmail.com>.
On Wed, 6 Oct 2004 11:35:07 -0400 (EDT), Joe Smith
<bl...@mail.sis.pitt.edu> wrote:
> Hello. As a very new user of apache I am attempting to configure
> suexec the execute as the file owner various CGI scripts. However
> I seem to be encountering a configuation problem with suexec; the
> error that is logged for a test script appears as follows
>
> [Wed Oct 06 11:07:51 2004] [error] [client 136.142.116.9] (13)Permission denied: file permissions deny server ac
> cess: /home/joeuser/public_html/cgi-bin/printenv.cgi
>
> The file itself is protected 711, and my wish is to have it processed
> by suexec using the users login UID, as opposed to merely displayed
> as occurs when the file permissions are set to 755.
>
> Any assistance would be very appreciated.
It sounds like you have a bunch of problems.
First, if you get the source code of the cgi script diplayed when you
set permissions to 755, that means you haven't properly configured
apache to process cgi scripts in user directories. See
http://httpd.apache.org/docs-2.0/howto/cgi.html
(and in particular, the "User directories" section).
Joshua.
---------------------------------------------------------------------
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