Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Apr 2005 11:42:59 +0900
From:      Joel <rees@ddcom.co.jp>
To:        freebsd-ports@freebsd.org
Subject:   Re: chmod -R g+w /usr/ports?
Message-ID:  <20050407113807.D33B.REES@ddcom.co.jp>
In-Reply-To: <20050406131214.GA5511@droopy.unibe.ch>
References:  <20050406200627.C9C7.REES@ddcom.co.jp> <20050406131214.GA5511@droopy.unibe.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Apr 2005 15:12:15 +0200
Tobias Roth <roth@iam.unibe.ch> wrote

> On Wed, Apr 06, 2005 at 08:06:46PM +0900, Joel wrote:
> > > > What am I missing, besides the obvious -- make install won't fly without
> > > > su or sudo? 
> > > 
> > > you're missing WRKDIRPREFIX
> > 
> > Thanks, t.
> > 
> > Does that mean that if the port honors WRKDIRPREFIX, I can even 
> > make install without switching to root? No?
> 
> No (as someone else already pointed out).
> 
> > Actually, what I'm trying to ask about is the advisability of opening
> > the ports tree to writes from the group, if I make sure the only member
> > of wheel is the admin user I use for installs. (I hardly make sense to
> > myself sometimes.)
> 
> There is no need to do that if you set WRKDIRPREFIX and DISTDIR. The
> former can be cleaned out before a make, so write permissions for
> non-wheel users are no problem. And since distfiles have their hash
> values checked before extraction, having user write permissions for the
> latter also is no problem.

Okay, with this and the other comments, I think I've got the picture now. 

Rather than muck with the permissions in the system maintained tree,
just move the tree to a directory my installer user owns. Then I can
build the package outside of the root-owned file system and do a pkg_add
with the result?

That'll be something to try out over the weekend.

Thanks, all.

--
Joel Rees   <rees@ddcom.co.jp>
digitcom, inc.   $B3t<02q<R%G%8%3%`(B
Kobe, Japan   +81-78-672-8800
** <http://www.ddcom.co.jp>; **



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050407113807.D33B.REES>