From 628fb787a6c117a96ad21009de1e7eb177035643 Mon Sep 17 00:00:00 2001
From: Rich Bowen The suEXEC feature provides
- Apache users the ability
+ The suEXEC feature provides users of the Apache
+ HTTP Server the ability
to run CGI and SSI programs
under user IDs different from the user ID of the calling
web server. Normally, when a CGI or SSI program executes, it
@@ -45,8 +45,8 @@
Before jumping head-first into this document,
- you should be aware of the assumptions made on the part of the
- Apache Group and this document. First, it is assumed that you are using a UNIX
derivative operating system that is capable of
@@ -71,11 +71,11 @@
security risks. It is highly recommended you
not alter the suEXEC code unless you are well versed in the
particulars of security programming and are willing to share
- your work with the Apache Group for consideration.
Fourth, and last, it has been the decision of - the Apache Group to NOT make suEXEC part of - the default installation of Apache. To this end, suEXEC + the Apache HTTP Server development team to NOT make suEXEC part of + the default installation of Apache htpd. To this end, suEXEC configuration requires of the administrator careful attention to details. After due consideration has been given to the various settings for suEXEC, the administrator may install @@ -83,7 +83,7 @@ these settings need to be carefully determined and specified by the administrator to properly maintain system security during the use of suEXEC functionality. It is through this detailed - process that the Apache Group hopes to limit suEXEC + process that we hope to limit suEXEC installation only to those who are careful and determined enough to use it.
@@ -99,11 +99,11 @@ taken to ensure your system's security.suEXEC is based on a setuid - "wrapper" program that is called by the main Apache web server. + "wrapper" program that is called by the main Apache HTTP Server. This wrapper is called when an HTTP request is made for a CGI or SSI program that the administrator has designated to run as a userid other than that of the main server. When such a - request is made, Apache provides the suEXEC wrapper with the + request is made, Apache httpd provides the suEXEC wrapper with the program's name and the user and group IDs under which the program is to execute.
@@ -130,10 +130,10 @@The wrapper will only execute if it is given the proper number of arguments. The proper argument format is known - to the Apache web server. If the wrapper is not receiving + to the Apache HTTP Server. If the wrapper is not receiving the proper number of arguments, it is either being hacked, or there is something wrong with the suEXEC - portion of your Apache binary. + portion of your Apache httpd binary.
@@ -244,8 +244,7 @@If the request is for a regular portion of the server, is @@ -370,7 +369,7 @@
--with-suexec-caller=UID
--with-suexec-userdir=DIR
--with-suexec-docroot=DIR
--datadir
value with the suffix
@@ -436,7 +435,7 @@
If you have enabled the suEXEC feature with the
--enable-suexec
option the suexec
binary
- (together with Apache itself) is automatically built if you execute
+ (together with httpd itself) is automatically built if you execute
the make
command.
After all components have been built you can execute the @@ -462,7 +461,7 @@ always the possibility that a system or library call suEXEC uses before this check may be exploitable on your system. To counter this, and because it is best-practise in general, you should use - filesystem permissions to ensure that only the group Apache + filesystem permissions to ensure that only the group httpd runs as may execute suEXEC.
If for example, your web server is configured to run as:
@@ -480,7 +479,7 @@ chmod 4750 /usr/local/apache2/bin/suexecThis will ensure that only the group Apache runs as can even +
This will ensure that only the group httpd runs as can even execute the suEXEC wrapper.
@@ -489,10 +488,10 @@Upon startup of Apache, it looks for the file +
Upon startup of httpd, it looks for the file
--sbindir
option (default is
- "/usr/local/apache/sbin/suexec"). If Apache finds a properly
+ "/usr/local/apache/sbin/suexec"). If httpd finds a properly
configured suEXEC wrapper, it will print the following message
to the error log:
If you want to enable the suEXEC mechanism for the first time - and an Apache server is already running you must kill and - restart Apache. Restarting it with a simple HUP or USR1 signal + and an Apache HTTP Server is already running you must kill and + restart httpd. Restarting it with a simple HUP or USR1 signal will not be enough.
If you want to disable suEXEC you should kill and restart
- Apache after you have removed the
NOTE! This section may not be complete. For the latest revision of this section of the - documentation, see the Apache Group's Online Documentation version.
@@ -576,7 +575,7 @@ virtual host requests, or one top-level personal document root for userdir requests. For example, if you have four VirtualHosts configured, you would need to structure all - of your VHosts' document roots off of one main Apache + of your VHosts' document roots off of one main httpd document hierarchy to take advantage of suEXEC for VirtualHosts. (Example forthcoming.) -- 2.40.0