From owner-freebsd-stable Mon Dec 9 11:25:52 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46B7437B401 for ; Mon, 9 Dec 2002 11:25:51 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id E726043EBE for ; Mon, 9 Dec 2002 11:25:49 -0800 (PST) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.5/8.12.5) with ESMTP id gB9JPkTJ097154; Mon, 9 Dec 2002 22:25:47 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Mon, 9 Dec 2002 22:25:46 +0300 (MSK) From: Dmitry Morozovsky To: Tod McQuillin Cc: Kenneth W Cochran , "" Subject: Re: Non-root updating & building In-Reply-To: <20021210003716.V42280-100000@glass.pun-pun.prv> Message-ID: <20021209222220.C96311-100000@woozle.rinet.ru> References: <200212091509.KAA56021362@shell.TheWorld.com> <20021210003716.V42280-100000@glass.pun-pun.prv> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 10 Dec 2002, Tod McQuillin wrote: TM> I have never tried it, but if you use the portupgrade utilities, there is TM> a --sudo command option which seems to imply that it runs as non-root TM> where it can and uses sudo where it needs privileges. TM> TM> I would be interested to know if this actually works. TM> TM> For build/install world, it should work to make sure your /usr/src is TM> readable and your /usr/obj writable by a non-root user. Of course you TM> will need to be root to install to system directories. TM> TM> Disclaimer: I have not tried either of these ideas. Give it a try and see TM> what happens. I do both of these methods at a regular basis, my /usr/src, /usr/ports and /usr/obj hierarchies are owned by either me or special non-privileged user, and `portupgrade -s' does exactly the Right Way [tm] ;-) BTW, there's excellent /usr/ports/Tools/scripts/distclean.sh script. Thanks, Maxim! I wish there will be similar script to clean /usr/ports/packages hierarchy, though... Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message