From nsayer@medusa.kfu.com  Wed Dec 13 15:32:44 2000
Return-Path: <nsayer@medusa.kfu.com>
Received: from quack.kfu.com (quack.kfu.com [205.178.90.194])
	by hub.freebsd.org (Postfix) with ESMTP id C6C2137B404
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Dec 2000 15:32:43 -0800 (PST)
Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222])
	by quack.kfu.com (8.11.1/8.11.1) with ESMTP id eBDNWcm33354
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Dec 2000 15:32:38 -0800 (PST)
	(envelope-from nsayer@medusa.kfu.com)
Received: (from nsayer@localhost)
	by medusa.kfu.com (8.11.1/8.11.0) id eBDNWcl84163;
	Wed, 13 Dec 2000 15:32:38 -0800 (PST)
	(envelope-from nsayer)
Message-Id: <200012132332.eBDNWcl84163@medusa.kfu.com>
Date: Wed, 13 Dec 2000 15:32:38 -0800 (PST)
From: Nick Sayer <nsayer@quack.kfu.com>
Sender: nsayer@medusa.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: postgres7 package install creates pgsql user w/ wrong shell
X-Send-Pr-Version: 3.2

>Number:         23534
>Category:       ports
>Synopsis:       postgres7 package install creates pgsql user w/ wrong shell
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 15:40:00 PST 2000
>Closed-Date:    Mon Jan 29 23:35:44 PST 2001
>Last-Modified:  Mon Jan 29 23:36:47 PST 2001
>Originator:     Nick Sayer
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Enlighten Software
>Environment:


>Description:

If you install the postgresql7 port with a 'make install' from the port
directory and the pgsql user does not exist, it is created with the
shell being /bin/sh. This is sensible, given that pgsql's home dir has
a .profile in it.

If you do a make package, then a make deinstall, then delete the pgsql
user, then install the package, the pgsql user will be created with the
shell /sbin/nologin, which (so far as I can tell) makes the rc.d scripts
break, among other things.


>How-To-Repeat:

>Fix:

In files/pgsql.sh.tmpl, change /sbin/nologin to /bin/sh. The
alternative, I believe, is a lot more trouble than it's worth (it means
fixing the rc.d script, the make install, getting rid of the .profile,
etc, etc, etc).


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkoshy 
State-Changed-When: Mon Jan 29 23:35:44 PST 2001 
State-Changed-Why:  
Fixed in rev 1.3 of pkg-install. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23534 
>Unformatted:
