From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 10:01:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E21A716A420 for ; Wed, 8 Mar 2006 10:01:26 +0000 (GMT) (envelope-from freebsdlists@elitists.org) Received: from gv.elitists.org (gv.elitists.org [64.40.88.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E38D43D46 for ; Wed, 8 Mar 2006 10:01:26 +0000 (GMT) (envelope-from freebsdlists@elitists.org) Received: from [192.168.1.100] (h202.elitists.org [64.40.88.202]) by gv.elitists.org (Postfix) with ESMTP id 504131D6FF; Wed, 8 Mar 2006 04:03:12 -0600 (CST) Message-ID: <440EAB7A.4090207@elitists.org> Date: Wed, 08 Mar 2006 04:01:30 -0600 From: "F. Even - fbsd-questions" User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ringworm01@gmail.com Subject: Re: portmanager core dumps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 10:01:27 -0000 > On Sunday 08 January 2006 18:30, Robert Marella wrote: >> Good Afternoon >> >> At times when in a hurry or not thinking as fast as my fingers, I try >> to run "portupgrade -s | grep OLD" from a regular user account instead >> of "sudo portupgrade -s | grep OLD". > > do you mean "portmanager -s | grep OLD" by any chance? >> >> I would expect portupgrade to insult my intelligence and question my >> heritage .... or is that question my intelligence and insult my >> heritage. Well, it doesn't do either. It core dumps. This will happen >> on more than one system running 6 Stable and the updated portmanager. >> >> [robert@frankie] ~> pkg_info | grep portmanager >> portmanager-0.4.1_4 FreeBSD installed ports status and safe update >> utility >> >> Thanks >> >> Robert > > Portmanager will only run as root, I'll make a note/bug to check error > handling when someone attempts to run it as a normal user. Mike, Please don't disable the ability to run this as a non-root user. I've managed to get it to run by chowning it's config, files under /var/db and the entire ports collection to an update user. Now I can run portmanager -s and it will give me an accurate run-down of what upgrades are needed. I can also then download updates as a restricted user. Changing to root will allow me to update as I need to, and as long as the src is cleaned up, no files owned by root are left behind in the ports tree. This actually works quite nicely. Thanks, Frank