From owner-freebsd-questions@FreeBSD.ORG Thu Mar 9 04:07:57 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 7C01016A420 for ; Thu, 9 Mar 2006 04:07:57 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 085E343D45 for ; Thu, 9 Mar 2006 04:07:56 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so333133wra for ; Wed, 08 Mar 2006 20:07:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=HSLHJWILFdAOWP3WFChLkr8g89NgriCf2oNksYhz1AGUCMBoCMGIyFULyyKzakdGmkjImkwh6GDLcBXiLwwbmJAMkmr7GB/MYjuEDT9GJ0yCPy88mIEYh/GlJntdrxkl7TALlfo1ZXq4VNcFU3+yCFYpS4JJfylhYb8vmcUaRYM= Received: by 10.54.145.17 with SMTP id s17mr1704723wrd; Wed, 08 Mar 2006 20:07:55 -0800 (PST) Received: from ?70.209.45.188? ( [70.209.45.188]) by mx.gmail.com with ESMTP id 40sm1983081wrl.2006.03.08.20.07.50; Wed, 08 Mar 2006 20:07:55 -0800 (PST) Message-ID: <440FA9F8.1070704@gmail.com> Date: Wed, 08 Mar 2006 20:07:20 -0800 From: "Michael C. Shultz" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsdlists@elitists.org References: <440EAB7A.4090207@elitists.org> In-Reply-To: <440EAB7A.4090207@elitists.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: portmanager core dumps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 04:07:57 -0000 F. Even - fbsd-questions wrote: >> 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 For the next few months I have no access to a FreeBSD system so won't be changing anything. Portmanager has no internal mechanisms for checking ownership, I think that so long as whoever has write access to everything in /usr/local/share/portmanager should be able to run it no problem. So if you want to change who can run it besides root just change the permisions of the files in that directory. I do have a change at home that moves the data bases to /var/db/portmanager so if that ever gets posted things will change slightly, it may never be posted though if no one takes over maintainership before I return. -Mike