From mi@rtfm.ziplink.net  Tue Dec 23 07:47:49 1997
Received: from aldan.ziplink.net (mi@kot.ne.mediaone.net [24.128.29.55])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA15192
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Dec 1997 07:47:48 -0800 (PST)
          (envelope-from mi@rtfm.ziplink.net)
Received: from rtfm.ziplink.net (rtfm [199.232.255.52])
	by aldan.ziplink.net (8.8.7/8.8.7) with ESMTP id KAA11399
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Dec 1997 10:46:10 GMT
	(envelope-from mi@rtfm.ziplink.net)
Received: (from root@localhost)
	by rtfm.ziplink.net (8.8.8/8.8.5) id KAA08410;
	Tue, 23 Dec 1997 10:48:20 -0500 (EST)
Message-Id: <199712231548.KAA08410@rtfm.ziplink.net>
Date: Tue, 23 Dec 1997 10:48:20 -0500 (EST)
From: root@rtfm.ziplink.net
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ordinary user cannot ``buildworld''
X-Send-Pr-Version: 3.2

>Number:         5369
>Category:       misc
>Synopsis:       Even though ``buildworld'' does not install, you must ``su''
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 23 07:50:01 PST 1997
>Closed-Date:    Tue Jan 6 22:20:26 PST 1998
>Last-Modified:  Tue Jan  6 22:22:42 PST 1998
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.0-971208-SNAP i386
>Organization:
Virtual Estates, Inc.
>Environment:


>Description:

	The ``buildworld'' target tries to ``install'' some files
	as bin.bin into the /usr/obj . That fails unless the user
	is root. SU privileges should only be neccessary to do
	``make installworld''.

>How-To-Repeat:

	As an ordinary user
	cd /usr/src
	make buildworld
	....
	< watch permission denied errors >

>Fix:
	
	
>Release-Note:
>Audit-Trail:

From: John-Mark Gurney <gurney_j@efn.org>
To: mi@aldan.algebra.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/5369: ordinary user cannot ``buildworld''
Date: Tue, 23 Dec 1997 12:26:54 -0800

 root@rtfm.ziplink.net scribbled this message on Dec 23:
 > >Description:
 > 
 > 	The ``buildworld'' target tries to ``install'' some files
 > 	as bin.bin into the /usr/obj . That fails unless the user
 > 	is root. SU privileges should only be neccessary to do
 > 	``make installworld''.
 > 
 > >How-To-Repeat:
 > 
 > 	As an ordinary user
 > 	cd /usr/src
 > 	make buildworld
 > 	....
 > 	< watch permission denied errors >
 
 one way to get around this is to override the owner/groups of the
 installed stuff...  I run the command:
 time -l make $* buildworld BINGRP=admin BINOWN=jmg TMACOWN=jmg TMACGRP=admin \
 	SHAREOWN=jmg SHAREGRP=admin -DNOINFO -DNOPROFILE -DNOTCL -DNOTERMCAP
 
 but there are some other parts of the tree that hard code the owner/group
 that change be changed, so I still run buildworld from root... I haven't
 had time to track down the neccessary changes to get it completely working...
 
 -- 
   John-Mark Gurney                          Modem/FAX: +1 541 683 6954
   Cu Networking					  P.O. Box 5693, 97405
 
   Live in Peace, destroy Micro$oft, support free software, run FreeBSD
State-Changed-From-To: open->closed 
State-Changed-By: jmg 
State-Changed-When: Tue Jan 6 22:20:26 PST 1998 
State-Changed-Why:  
this isn't the case anymore... just completed it with: 
make $* buildworld BINGRP=admin BINOWN=jmg TMACOWN=jmg TMACGRP=admin SHAREOWN=jmg SHAREGRP=admin 
>Unformatted:
