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 1hRTmu-0005ej-67 for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2019 03:44:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRTms-00022A-RL for pgsql-bugs@arkaria.postgresql.org; Fri, 17 May 2019 03:44:02 +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 1hRTms-000220-G0 for pgsql-bugs@lists.postgresql.org; Fri, 17 May 2019 03:44:02 +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 1hRTmq-0000yt-3l for pgsql-bugs@lists.postgresql.org; Fri, 17 May 2019 03:44:01 +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 x4H3huIq017118; Thu, 16 May 2019 23:43:56 -0400 From: Tom Lane To: Omer Ozarslan cc: Michael Paquier , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error In-reply-to: References: <15810-c9f666eb398e40b7@postgresql.org> <20190516234351.GC20887@paquier.xyz> <9610.1558051173@sss.pgh.pa.us> Comments: In-reply-to Omer Ozarslan message dated "Thu, 16 May 2019 22:29:15 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17116.1558064636.1@sss.pgh.pa.us> Date: Thu, 16 May 2019 23:43:56 -0400 Message-ID: <17117.1558064636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Omer Ozarslan writes: > On Thu, May 16, 2019 at 6:59 PM Tom Lane wrote: >> I'm kind of disinclined to provide a way to skip the permissions >> check though, especially in view of the fact that there's no good >> reason to use a Windows filesystem as native storage for Unix. > Would it be possible to provide a way to skip permission check and then let > it fail in case user needs to use these specific features? I don't expect > to use tablespaces for example. Does lack of these permissions (or other > unix fs features like symlinks) bring some limitations to the point the > database cannot function at all? We consider it insecure (because it is) and we won't support it. This is not very different from the complaints we occasionally get about Postgres not being willing to run as root. That is also a bad idea, and we won't support that either, regardless of any argument that might be made that it-makes-sense-in-my-niche-use-case. In both cases, it's not that hard to hack the check out of the source code if you are bound and determined to do so. regards, tom lane