From owner-freebsd-ports@FreeBSD.ORG Sun Sep 2 11:04:05 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD9DC16A46D for ; Sun, 2 Sep 2007 11:04:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx1.freebsd.org (Postfix) with ESMTP id 23BCD13C48A; Sun, 2 Sep 2007 11:04:04 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <46DA98A3.5030204@FreeBSD.org> Date: Sun, 02 Sep 2007 13:04:03 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: martinko References: <20070830004020.GA58539@blazingdot.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: ports system and umask X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 11:04:05 -0000 martinko wrote: > Marcus Reid wrote: >> Hi, >> >> I had my umask set to 007 and installed some ports, and it broke a >> lot of things. Some ports seem to install files with correct >> permissions, >> while others install files with the default umask. Worse, one port >> even changed the perms on /usr/local/lib to 770, which made my system >> unusable until I booted into single and fixed it. >> >> Should the ports system check for this and correct the umask before >> installing files with bad permissions? >> >> Thanks, >> >> Marcus > > Hallo, > > We have similar problems here -- default umask is set to 027 and > therefore one needs to always remember changing it to 022 prior > installing any ports or packages. > Been bitten many times because of this. :-\ > > Martin There is an argument that if you set the umask then you are getting exactly what you ask for :) Kris