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 1hRQ2d-0002p1-3F for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2019 23:44:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRQ2b-0002cD-M6 for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2019 23:44:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRQ2b-0002c6-EF for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2019 23:44:01 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRQ2Z-0003Xj-6W for pgsql-bugs@lists.postgresql.org; Thu, 16 May 2019 23:44:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id AD8FE33E; Thu, 16 May 2019 19:43:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 16 May 2019 19:43:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ydSb9QEB7EC6emjVMwVfrj16AUf DBXOa8vtOmZepO8w=; b=aaJVrhake3gkWq3JfJJh1fN6vf3bqc8XusbF54C5Szd 14oaP7G8n8sMwhiO5BKo0dD9QUOmJcf+XqsyNRkKE0TAHX8quXNNEe+JC1VQWQJ4 K1sjodc3KKFUVk2yWNiwprPDNy/5z96acFm0X/qbmpWO8esBMe/E7Cr1kXLMgc7H pVzNwdmFwos10SuP0U8wYBcD57mdYq8qTvMaugAl0ACZNsR3NA/xRP/FBgymBbVz Xh8sQCwE6rdbw2NgoOMVIDJtwHP6eb0f5Gvw/2ptA2Xfu+QwzhBT9cOOVMzVjWIm 96eTYUctZPMYojFQuB5FlbAruJ+NpnUT4nfpwxvAmaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ydSb9Q EB7EC6emjVMwVfrj16AUfDBXOa8vtOmZepO8w=; b=SAnWFyE0b9oZtvsQLYJofn liuGDLnK/+4gubu5HnXmlwS78W/hSzgLMtJ0CWDlOMD9gQvqi+YNddrZn3LUbN07 I71Vg/RG1qrWnCNkBcZ4yxreqpY34CSrSk5QNrUKgfUfrJJxpWHYhp7Ctps59fJU sWAaLv6XpLJyq5HNVgtSt0Yl4RSq4jOQL12sMIXYCW7NYJb1ygwWTC3PetaDudaI CQmfL4ay5rrpVqD05YVETd2pTyaWvKrr9Ew2C3DTJ/wmAqA6SlZf3Rr2KQ6ijWdy dFThWN16t0YVC/G8/cB9AcBFTUyDoVtgFZty5WWpUe0yfGxdq9XHlLX3c2oPWi9A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtuddgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id A6B5A80059; Thu, 16 May 2019 19:43:54 -0400 (EDT) Date: Fri, 17 May 2019 08:43:51 +0900 From: Michael Paquier To: omerfaruko@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error Message-ID: <20190516234351.GC20887@paquier.xyz> References: <15810-c9f666eb398e40b7@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JgQwtEuHJzHdouWu" Content-Disposition: inline In-Reply-To: <15810-c9f666eb398e40b7@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --JgQwtEuHJzHdouWu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 16, 2019 at 04:15:39PM +0000, PG Bug reporting form wrote: > Is there some way to circumvent this check without changing format > of the HDD? That's weird. If the data folder fed to initdb already exists and is empty, then permissions on the path are enforced to 0700 or 0750 (if using --allow-group-access) automatically to prevent this error when starting Postgres for bootstrapping. If the path does not exist, then the data folder is created with proper permissions. In any case, you should not see this error. Are you using some specific mounting options? -- Michael --JgQwtEuHJzHdouWu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlzd9bcACgkQnvQgOdby QH1DlQ//R7gDATcuEF5JeFEIK+E43oVP3J2iocLRW0bt5BY4qGuqF4GdCLQlJW4n sl6neq65wWkJPInUaAGjlquLwSTsZAIIDRWBqaNkPM6dJDU1Mr6lqec1oi6CKyE3 JuauV8jhFv35tWNr4ECYupSDzw/O4QEMmrvDOGAXlI/nkTmWbNWLdj54GhEHMqSN AM89bAnA/qlq0Em9ADGrKVOvhfntWQwwFm2fXDdON6ZsUw9ErWVdpkjPRQC/Sorz Mg/KaKEWA3cCXRRBX+B8BoiID09bGbvlMF1clG2tdha72vC744ZJKSzaFfpYPa3k 8oVrbOtX0dwElFBqWsqVpVh+gNXneSIHENBGwKPV/ddOqVIR8OwtiZ0Umk1deJmg qBvaHo6v373KnVfAC3wIXfZprANrWnC1puJofYSN9z46J9wg8XAHOnMAtUZyn4KZ ywczS6wrCPlt/dFh6tOdiivm0zyPWorxK5pfJs5SRrpTFEhEd33PoBpfbG7l2mPj nmnH0YhVinTf3Of/DjgXQ7BImbGXtIefIA1+iWUQxKUbNkV2UGBviyyVFIVRg28V yQSq0EXBQNFqt9jL7WzmWP269c/EQ7dFvoxmNc3RqsKCNKq3snUYiRyvTDyCa47G KLoDBLyieSqisB29KtJOkdI4tBrn5+HaX/nyi16fTPPvdneWVe8= =kwpp -----END PGP SIGNATURE----- --JgQwtEuHJzHdouWu--