Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHop2-0003xp-7v for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Mar 2021 14:19:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHop1-00085f-5j for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Mar 2021 14:19:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHop0-00085T-H4 for pgsql-bugs@lists.postgresql.org; Thu, 04 Mar 2021 14:19:22 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHooy-0004YV-2y for pgsql-bugs@lists.postgresql.org; Thu, 04 Mar 2021 14:19:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 24D6814A6; Thu, 4 Mar 2021 09:19:18 -0500 (EST) Received: from imap21 ([10.202.2.71]) by compute2.internal (MEProxy); Thu, 04 Mar 2021 09:19:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=H9CGbJcMtMB3ew5IJZUAOjZ7LV/gHXp f+kO6XGoObgI=; b=hZcZQRyTJmpmig03Sc8BmHGppyQWtahmb7+Eg9y420ievp3 1jLUWpKLk36khBhzfjlhd8Ebsj4nwiTSjby1qUnD1vzq94E8cIDX/eGnSQ3AwC1t aDRvWIXQdn6ckYFEdJSMbTJIt53aaLkJAAFV4BceDTX5dmEjeUYWi3NAboa1un0M PmFOoivbG1F8QxBWVmJeiI7IpUAPgWDfglFsMPCI7yqyJwlR/Gz/blORvgnY/CID Tt8aZUvv7KG6g9pRQTI5ulVfC+dZwxu9vNQmWiSgZ1XTfFP61AkJRwLGqCjU4vIp Yiu0134NMotgtFT9geR4Qgc+TqqB5Msv8X/VW2w== 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=H9CGbJ cMtMB3ew5IJZUAOjZ7LV/gHXpf+kO6XGoObgI=; b=o2b6MqhTXkYmslqazLRjbY YyPVlOGHNJZmbxJDZFH+fIaTKdlPWX9LH9aic714WCtqr49asxaSp0s5ALaGxiOe QpgbjEEjkrTLvsNBoWR5dStgoC2Ar+48DsbCzzbPmyPz+z0+3xB3Gc+1cjF2ayeW NchhkBQr/m39Fh0H0WIhFkGsUtkhbhf79NWgZin6untVxUnTX2kffObJuNIedBXj eqxfnU1fMPQwa/jhFZPb5UM09Okdj1VbE4pK2wwN9cEWCpT/5QMCzreYOqzVq6Eo /Ba/FptpBwsHi+iCI5w8bCs2uobuvqzV0wscJW5L3Yfh1mk+ItyIz9CcDydmsjLg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerreejnecuhfhrohhmpedfgfhulhgvrhcuvfgrvhgvihhrrgdfuceovghulhgvrhes vghulhgvrhhtohdrtghomheqnecuggftrfgrthhtvghrnhepiefftdfgvdeghfeggfdtje dtffefvdfgueffgedtffefudeiuedvhefggeevleeknecuffhomhgrihhnpegvnhhtvghr phhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegvuhhlvghrsegvuhhlvghrthhordgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id C2A6651C005D; Thu, 4 Mar 2021 09:19:16 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-206-g078a48fda5-fm-20210226.001-g078a48fd Mime-Version: 1.0 Message-Id: <527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.com> In-Reply-To: <16915-44cc93306d08db16@postgresql.org> References: <16915-44cc93306d08db16@postgresql.org> Date: Thu, 04 Mar 2021 11:18:44 -0300 From: "Euler Taveira" To: 370619197@qq.com, pgsql-bugs@lists.postgresql.org Subject: =?UTF-8?Q?Re:_BUG_#16915:_use_psql_have_error_"could_not_change_director?= =?UTF-8?Q?y_to_"/root":_Permission_denied"?= Content-Type: multipart/alternative; boundary=926e21a9838542ab98a917ead8c37500 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --926e21a9838542ab98a917ead8c37500 Content-Type: text/plain On Thu, Mar 4, 2021, at 8:21 AM, PG Bug reporting form wrote: > Just so that you have the correct expectation, the issue you have has > nothing to do with this ansible repository. I am looking into this as I find > it interesting. It is an issue that came with Postgres 13, as it does not > seem to be present in Postgres 12. I didn't run your commands but I noticed that you are not using equivalent commands. Your su command specifies '-' that means "Start the shell as a login shell with an environment similar to a real login" and your sudo command does not specify option -i that provides an equivalent feature. Could you test with 'sudo -i -u postgres' and show us the result? -- Euler Taveira EDB https://www.enterprisedb.com/ --926e21a9838542ab98a917ead8c37500 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Thu, Mar 4, = 2021, at 8:21 AM, PG Bug reporting form wrote:
Just so that you have the correct ex= pectation, the issue you have has
nothing to do with this = ansible repository. I am looking into this as I find
it in= teresting. It is an issue that came with Postgres 13, as it does not
=
seem to be present in Postgres 12.
I didn't run your commands but I noticed that you are not using equival= ent        
comma= nds. Your su command specifies '-' that means "Start the shell as a logi= n 
shell with an environment similar to a real login"= and your sudo command does  
not specify option= -i that provides an equivalent feature. Could you test with 'sudo =  
-i -u postgres' and show us the result?


--
Euler Taveira

--926e21a9838542ab98a917ead8c37500--