From owner-freebsd-questions Mon Aug 5 8:42:51 2002 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 1C8B537B400 for ; Mon, 5 Aug 2002 08:42:50 -0700 (PDT) Received: from mailhub.unibe.ch (mailhub.unibe.ch [130.92.9.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B4443E65 for ; Mon, 5 Aug 2002 08:42:49 -0700 (PDT) (envelope-from roth@iam.unibe.ch) Received: from CONVERSION-DAEMON.mailhub.unibe.ch by mailhub.unibe.ch (PMDF V6.1 #40086) id <0H0D00701NN6IR@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Mon, 05 Aug 2002 17:42:43 +0200 (MEST) Received: from iam.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub.unibe.ch (PMDF V6.1 #40086) with ESMTP id <0H0D004BSNN689@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Mon, 05 Aug 2002 17:42:42 +0200 (MEST) Received: from lara.unibe.ch (lara [130.92.65.56]) by iam.unibe.ch (8.11.6+Sun/8.11.6) with ESMTP id g75FgfS10047 for ; Mon, 05 Aug 2002 17:42:41 +0200 (MET DST) Received: (from roth@localhost) by lara.unibe.ch (8.9.3+Sun/8.9.1) id RAA19306 for freebsd-questions@freebsd.org; Mon, 05 Aug 2002 17:42:40 +0200 (MET DST) Date: Mon, 05 Aug 2002 17:42:40 +0200 From: Tobias Roth Subject: using portupgrade as non-root To: freebsd-questions@freebsd.org Message-id: <20020805154240.GC19231@lara.unibe.ch> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i X-Operating-System: SunOS lara 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-5_10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I am thinking about creating a special user for managing my ports, so I don't have to do the configure/make part as root. However, at the same time I would like to use portupgrade. How can I accomplish that? If I set WRKDIRPREFIX and distfiles to something userwritable, make/make install from the portstree works. If I give the whole portstree to the user, even make update works. But not portupgrade, obviously. From PORTUPGRADE(1): --sudo-command CMD Specify an alternative to sudo(8). e.g. ``'su root -c %s ''' (default: sudo) How is this supposed to work? I didn't get it to do what I want (su to root for the install and package database update processes only). Any help appreciated cheers, T. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message