Subject: pkg/17333: apache pkgsrc blindly change file's owner.
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 06/20/2002 18:12:02
>Number:         17333
>Category:       pkg
>Synopsis:       apache pkgsrc blindly change file's owner.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 20 02:13:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Takahiro Kambe
>Release:        NetBSD 1.6_BETA2
>Organization:
	
>Environment:
	
	
System: NetBSD edge.sky.yamashina.kyoto.jp 1.6_BETA2 NetBSD 1.6_BETA2 (FIVA20X) #146: Sat Jun 15 16:15:22 JST 2002 taca@edge.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/FIVA20X i386
Architecture: i386
Machine: i386
>Description:
	When install apache from pkgsrc, it blindly change owner of files
	under ${PREFIX}/share/httpd directory.  It should more carefuly
	change the files which was installed by apache pkgsrc.

	Since some site may allow some users to write web document,
	htdocs (docuemtn root) directory contains non-root files.
	But updating apache results prune those information of files'
	owner.

	Installing apache binary package with pkg_add(8) dose't have this
	behavior.

>How-To-Repeat:
	Install apache from pkgsrc.
>Fix:
	Change the line in post-install target to more limited files.

	${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/httpd


>Release-Note:
>Audit-Trail:
>Unformatted: