From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 14:58:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9631737B401 for ; Wed, 23 Jul 2003 14:58:51 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id F359943F75 for ; Wed, 23 Jul 2003 14:58:50 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[66.30.200.37]) by comcast.net (rwcrmhc11) with ESMTP id <2003072321585001300oqnjhe>; Wed, 23 Jul 2003 21:58:50 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h6NLvVVJ000711; Wed, 23 Jul 2003 17:57:31 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h6NLvUIE000708; Wed, 23 Jul 2003 17:57:30 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: "Brad" References: <001f01c35027$a09853f0$c366b38e@kthx> From: Lowell Gilbert Date: 23 Jul 2003 17:57:30 -0400 In-Reply-To: <001f01c35027$a09853f0$c366b38e@kthx> Message-ID: <44he5csy7p.fsf@be-well.ilk.org> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: Make Permission errors! Most odd. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 21:58:51 -0000 X-List-Received-Date: Wed, 23 Jul 2003 21:58:51 -0000 "Brad" writes: > I've been experiencing permission errors with make > intermittently. It's happening with quite a few users on the box but > it's just random. It's never a certain application or a certain > user/group so it's been very hard to pinpoint what the problem is, > hence why I'm posting here. > > What is happening is basically a user will untar a file and type > "make" after a ./configure and get "make: Permission denied". When I > first encountered this I believe I chmod -R 777 * in the directory > that the file was untared in and that worked for me, but for some of > my users who are less experienced with freeBSD won't know how and > don't know how to resolve this and it shouldn't be happening in the > first place. Other users say they have gotten the error and simply > logged out and back in and resolved it. > > > Anyone have any ideas what is causing this and how to fix it? tar(1) stores permissions as well as the files themselves. By default, it doesn't seem (according to a quick manual check I just did) to try to recreate those permissions when it extracts the files; it uses the umask instead. So make sure that the users have a reasonable umask by default.