chmod -R g+w /usr/ports?

Joel rees at ddcom.co.jp
Wed Apr 6 19:43:04 PDT 2005


On Wed, 6 Apr 2005 15:12:15 +0200
Tobias Roth <roth at 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 at ddcom.co.jp>
digitcom, inc.   株式会社デジコム
Kobe, Japan   +81-78-672-8800
** <http://www.ddcom.co.jp> **



More information about the freebsd-ports mailing list