From owner-freebsd-questions@FreeBSD.ORG Tue May 12 01:12:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5446DA4 for ; Tue, 12 May 2015 01:12:34 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82A8917A2 for ; Tue, 12 May 2015 01:12:33 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YryVe-00015H-51 for freebsd-questions@freebsd.org; Tue, 12 May 2015 02:57:22 +0200 Received: from pool-72-66-1-32.washdc.fios.verizon.net ([72.66.1.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 02:57:22 +0200 Received: from nightrecon by pool-72-66-1-32.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 02:57:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: permissions and ownership of /usr/src Date: Mon, 11 May 2015 20:57:08 -0400 Lines: 36 Message-ID: References: <20150510190342.GA9986@skytracker.ca> <20150510234531.f2398880.freebsd@edvax.de> <44r3qnfbwl.fsf@be-well.ilk.org> Reply-To: nightrecon@hotmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-66-1-32.washdc.fios.verizon.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2015 01:12:34 -0000 Lowell Gilbert wrote: > Polytropon writes: > >> On Sun, 10 May 2015 15:03:44 -0400, David Banning wrote: >>> Can anyone tell me what the permissions - ownership are/should >>> be for /usr/src ? >> >> /usr/src should belong to root:wheel and have rwxr-xr-x permissions >> (those are the defaults). Does mergemaster indicate an error for >> /usr/src itself or for a subdirectory thereof? I was wondering about this too, e.g. is the permission error in /var/tmp/ when mergemaster is trying to create the temproot directory tree under /var/tmp, and reflecting back through mergemaster when it fails. Somehow, I don't really think it likely, as a time or two I've had a problem like this mergemaster was very explicit about what was wrong. > Or, if the bandwidth isn't a big deal, remove the whole tree and do a > fresh "svn checkout". Or remove the directory where the error is > happening, and do an "svn update". Just something to mention in case anyone is interested: When I cd to /usr/src and do rm -rf * it will delete everything except the hidden directory .svn. Operation not permitted. In order to delete this internal svn housekeeping directory one must first chflags -R noschg .svn Then one can rm -rf .svn normally, and /usr/src will be truly empty. If someone can blow away /usr/src without seeing the operation not permitted error on the .svn directory, something is wrong with the flags under /usr/src/.svn [snip] -Mike