Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2000 15:32:38 -0800 (PST)
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23534: postgres7 package install creates pgsql user w/ wrong shell
Message-ID:  <200012132332.eBDNWcl84163@medusa.kfu.com>
Resent-Message-ID: <200012132340.eBDNe1u59936@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23534
>Category:       ports
>Synopsis:       postgres7 package install creates pgsql user w/ wrong shell
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 15:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012132332.eBDNWcl84163>