Subject: pkg/29896: www/wwwcount should use VARBASE and custom user and group
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <reed@reedmedia.net>
List: pkgsrc-bugs
Date: 04/05/2005 20:32:00
>Number:         29896
>Category:       pkg
>Synopsis:       www/wwwcount should use VARBASE and custom user and group
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 05 20:32:00 +0000 2005
>Originator:     reed@reedmedia.net
>Release:        NetBSD 1.6.2_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.2_STABLE NetBSD 1.6.2_STABLE (MYKERNEL) #1: Tue Jun 1 12:16:43 PDT 2004 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
Noticed when installing as non-root:

installing sample datafile ./data/data/sample.dat->/storage1/home/jreed/pkg/libd
ata/wwwcount
chown: /storage1/home/jreed/pkg/libdata/wwwcount/#inst.9159#: Operation not perm
itted
...
installing rgb.txt->/storage1/home/jreed/pkg/libdata/wwwcount
installing wwwcount->/var/log
touch: /var/log/wwwcount: Permission denied
chmod: /var/log/wwwcount: No such file or directory
chown: nobody.nogroup: Invalid argument

>How-To-Repeat:
install without any root privilege.
>Fix:
Set these variables to better defaults.
DataDir="/var/db/wwwcount"
LogDir="/var/log"
UserId="nobody"
GroupId="nobody"

>Unformatted: