Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6Pk3-0002YG-Vv for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 00:05:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6Pk2-0001tU-0L for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 00:05:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6Pk1-0001tF-Lp for pgsql-general@lists.postgresql.org; Thu, 12 Apr 2018 00:05:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6Pjz-00070E-8s for pgsql-general@lists.postgresql.org; Thu, 12 Apr 2018 00:05:28 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2895521819; Wed, 11 Apr 2018 20:05:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 11 Apr 2018 20:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=qRvUdDuuBDJzJj+rLcDzQuNpRBQA0 nNxkqo2BcJW53g=; b=pAXRI3/TzKSAFlB+dRcSxw2IiNPspoJTFMZvljZAQYGFV VuCfnghHKj8VGnAG74ZJz34FiLsbeDb73PSImclpr06dU6TT8jiqs1d+hzCg9q77 LHcmdkErgVaUf/q9cZ3eXI47jj5bfJGH9tIbn4c/qfZUITGL3vBOZwrw8iagwqRy OS0dNlJqKxnpzoC5cebKoF6zTWYCEYsWxkvEtVndNeUGWBzwzFlohGiGFuVPUxzR mzg8bSMCexw9kPioY4LzYcgCtN3lWI23XjQQaot9SBJhjBle1PQPbZS/TGlNYNHp ao2vnXzKauqIBGxBNPwIMk88Xd03K0eiHpjfIzMnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=qRvUdD uuBDJzJj+rLcDzQuNpRBQA0nNxkqo2BcJW53g=; b=aFT3/AUORbRPZlpLHGT7in /87/llQ26OsME5y1sc0GcGCSnktHaFhGe5g3Wo6O8ydvIHMPSAARIr+0vR9W9Prh pFlM6mpPqeX9eweoW0XnkLd6lxPeaTv4+CAJXwNi5fJ6c0c+pmMb1k7VEHGRIZHa wCpPIWtAGeXELSof8Mi0M/DkZRtsuMh+71n169rsVJzS7Vwx+tt6UjLFgFRlTiFQ CPNlX3h3+32Av65BIPuNws7sy0cVLTYP2HPIxN6TJlcZFEEqIMMY2+XPpgbVH2AI T6MvbmcW4hxAYtiJIrG8vfEiox4GSoprP/azhmgFK1NogKFYEVQyQVfaqUa4wzxg == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 6EB4EE4483; Wed, 11 Apr 2018 20:05:25 -0400 (EDT) Subject: Re: Commands linked to pg_wrapper not working with non-root users To: Jonathan Leroy - Inikup Cc: Tim Cross , pgsql-general@lists.postgresql.org References: <878t9t753a.fsf@gmail.com> <6968c432-c9c7-6241-55da-8b078e6e56ed@aklaver.com> From: Adrian Klaver Message-ID: <1a10e369-fbbe-6b7e-fa47-a8af7dcd923f@aklaver.com> Date: Wed, 11 Apr 2018 17:05:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/11/2018 04:49 PM, Jonathan Leroy - Inikup wrote: > 2018-04-12 1:38 GMT+02:00 Adrian Klaver : >> Another thought do you have the PGDATA environment variable set for your >> user1? > > Nope. > > Maybe I will try to "dissect" pg_wrapper to find where the error > occurs, but the script is quite complex... > Does this happen for the other commands also? e.g: pg_dump -V Also what happens if you do: psql 9.4 main -V Substituting your cluster name for main if required. -- Adrian Klaver adrian.klaver@aklaver.com