Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjxVB-0000XQ-JB for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 02:33:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjxVA-0003zV-6B for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 02:33:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjxV9-0003zO-TV for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 02:33:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjxV6-0000mH-Oj for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 02:33:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0H2Xf8I003967; Wed, 16 Jan 2019 21:33:41 -0500 From: Tom Lane To: a3nm.postgresql@a3nm.net cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15596: Folders created with wrong permissions when installing an extension with a non-default umask In-reply-to: <15596-a7991ddfd29b90d0@postgresql.org> References: <15596-a7991ddfd29b90d0@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Thu, 17 Jan 2019 01:48:30 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3965.1547692421.1@sss.pgh.pa.us> Date: Wed, 16 Jan 2019 21:33:41 -0500 Message-ID: <3966.1547692421@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > However, the umask of my user is 077, so these "mkdir -p" invocations are > creating folders that can only be read by root, which is not the intended > behavior. So ... don't do that. > Would it be possible to fix this by redefining MKDIR_P="mkdir -m 0755 -p" in > pgxs.mk so that the mkdir invocations create the folders with the right > permissions, in line with the "install" invocations? Thanks! I think that would be a pretty bad idea, because it would break things for packagers who have their own ideas about what the directory permissions ought to be. You can, of course, enforce your own ideas on the make run with something like (untested) make MKDIR_P="mkdir -m 0755 -p" install regards, tom lane