From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 20 23:10:19 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0861E16A406 for ; Sat, 20 Jan 2007 23:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id AB7B113C44C for ; Sat, 20 Jan 2007 23:10:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0KNAHO5032226 for ; Sat, 20 Jan 2007 23:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0KNAHPm032217; Sat, 20 Jan 2007 23:10:17 GMT (envelope-from gnats) Resent-Date: Sat, 20 Jan 2007 23:10:17 GMT Resent-Message-Id: <200701202310.l0KNAHPm032217@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bolinard Vincent Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4221716A40B for ; Sat, 20 Jan 2007 23:00:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id F214213C467 for ; Sat, 20 Jan 2007 23:00:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0KN0OZ4027607 for ; Sat, 20 Jan 2007 23:00:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l0KN0OVb027606; Sat, 20 Jan 2007 23:00:24 GMT (envelope-from nobody) Message-Id: <200701202300.l0KN0OVb027606@www.freebsd.org> Date: Sat, 20 Jan 2007 23:00:24 GMT From: Bolinard Vincent To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/108169: Wrong AP_SAFE_PATH for suEXEC with apache20 package X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 23:10:19 -0000 >Number: 108169 >Category: misc >Synopsis: Wrong AP_SAFE_PATH for suEXEC with apache20 package >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 20 23:10:16 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Bolinard Vincent >Release: 6.2-RELEASE >Organization: >Environment: FreeBSD server.vinzland.net 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Fri Jan 19 23:33:32 CET 2007 temp1@server.vinzland.net:/usr/obj/usr/src/sys/SERVER i386 >Description: I installed apache20 package with : # pkg_add -r apache20 Everything is working fine but suEXEC. If the module is loaded without any additional options, it works. But, if I try to set the SuexecUserGroup option in a vhost, this is what I get when I run apachectl -t : Warning: SuexecUserGroup directive requires SUEXEC wrapper. Syntax OK So, I checked suEXEC with : # /usr/local/sbin/suexec -V -D AP_DOC_ROOT="/usr/local/www/data" -D AP_GID_MIN=1000 -D AP_HTTPD_USER="www" -D AP_LOG_EXEC="/var/log/httpd-suexec.log" -D AP_SAFE_PATH="/usr/local/bin:/usr/local/bin:/usr/bin:/bin" -D AP_UID_MIN=1000 -D AP_USERDIR_SUFFIX="public_html" The AP_SAFE_PATH is wrong. >How-To-Repeat: >Fix: The AP_SAFE_PATH should be set (at least) like this : "/usr/local/bin:/usr/local/sbin:/usr/bin:/bin" to include the /usr/local/sbin directory which contains the suEXEC binary. On my personal machine I copied suEXEC (with -p argument) to /usr/local/bin and ran apachectl -t : Syntax OK No warning about suEXEC. >Release-Note: >Audit-Trail: >Unformatted: