ports/119935: qmail port user
Simon Shapiro
simon at niftywerks.com
Thu Jan 24 03:50:02 UTC 2008
>Number: 119935
>Category: ports
>Synopsis: qmail port user
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 24 03:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Simon Shapiro
>Release: 6.2
>Organization:
Niftywerks, Inc.
>Environment:
FreeBSD test.nwerks.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
/usr/ports/mail/qmail
The new pkg-install script, which switched from csh to sh, updated two days ago, broke the port.
Specifically, use of the $USER environment variable in order to determine effective uid is wrong, this variable is the login user, so if one logs in as their own user, and su's to root, the pkg-install script comes up with the login-user's userid, not root, and the port configure will fail.
>How-To-Repeat:
login as non-root user
# su
# cd /usr/ports/mail/qmail
# make configure
>Fix:
the hack i used is to set $user env to 'root'. how stupid is that?
I'm not sure why they used the method they did, i am not sure what the best practice is. it seems like there must be other ports that require root!
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list