From nobody@FreeBSD.org  Thu Dec 27 08:16:32 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5099538E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Dec 2012 08:16:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1C2848FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Dec 2012 08:16:32 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBR8GVis095653
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Dec 2012 08:16:31 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qBR8GVfa095652;
	Thu, 27 Dec 2012 08:16:31 GMT
	(envelope-from nobody)
Message-Id: <201212270816.qBR8GVfa095652@red.freebsd.org>
Date: Thu, 27 Dec 2012 08:16:31 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports-mgmt/portmaster: should check for script running as before doing certain operations
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174729
>Category:       ports
>Synopsis:       ports-mgmt/portmaster: should check for script running as before doing certain operations
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bdrewery
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 27 08:20:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:31:56 UTC 2013
>Originator:     Garrett Cooper
>Release:        10-CURRENT
>Organization:
EMC Isilon
>Environment:
n/a
>Description:
portmaster bombs out late in the process because it doesn't check for root-based credentials before it tries to update packages. Discovered this by accident because I accidentally forgot to run portmaster with sudo.
>How-To-Repeat:
sudo -u nobody portmaster -a
>Fix:
Check for root privs sooner.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bdrewery 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Dec 27 08:20:10 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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