Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aztgp-0002ck-5E for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 09 May 2016 22:30:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aztgo-0006os-9p for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 09 May 2016 22:30:10 +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.84_2) (envelope-from ) id 1aztgn-0006nf-Ra for pgsql-pkg-debian@postgresql.org; Mon, 09 May 2016 22:30:09 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aztgl-0004nh-6U for pgsql-pkg-debian@postgresql.org; Mon, 09 May 2016 22:30:08 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aztgh-0006RS-Cu for pgsql-pkg-debian@postgresql.org; Tue, 10 May 2016 00:30:03 +0200 Received: from s0106503955564c1f.wp.shawcable.net ([24.77.8.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2016 00:30:03 +0200 Received: from spluque by s0106503955564c1f.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2016 00:30:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-pkg-debian@postgresql.org From: Seb Subject: no password on postgres user and pgagent Date: Mon, 09 May 2016 17:07:57 -0500 Organization: Church of Emacs Lines: 34 Message-ID: <87r3daopfm.fsf@otaria.sebmel.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s0106503955564c1f.wp.shawcable.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:jCsx55G85POcMjPkk3T4sPej45w= X-Pg-Spam-Score: -3.5 (---) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Hello, I'd like to run pgagent with the postgres user, which doesn't have a password. I thought it'd be as simple as setting up an init script as: [ -- Begin ---------------------------------------------- ] #! /bin/sh pgagent user=postgres host=localhost dbname=postgres [ -- End ------------------------------------------------ ] and then the following should work: ---<--------------------cut here---------------start------------------->--- $ sudo -u postgres sh pgagent_start.sh sluque@otaria:~$ Mon May 9 16:23:00 2016 : WARNING: Couldn't create the primary connection (attempt 1): fe_sendauth: no password supplied Mon May 9 16:23:05 2016 : WARNING: Couldn't create the primary connection (attempt 2): fe_sendauth: no password supplied Mon May 9 16:23:10 2016 : WARNING: Couldn't create the primary connection (attempt 3): fe_sendauth: no password supplied Mon May 9 16:23:15 2016 : WARNING: Couldn't create the primary connection (attempt 4): fe_sendauth: no password supplied Mon May 9 16:23:20 2016 : WARNING: Couldn't create the primary connection (attempt 5): fe_sendauth: no password supplied Mon May 9 16:23:25 2016 : WARNING: Couldn't create the primary connection (attempt 6): fe_sendauth: no password supplied Mon May 9 16:23:30 2016 : WARNING: Couldn't create the primary connection (attempt 7): fe_sendauth: no password supplied Mon May 9 16:23:35 2016 : WARNING: Couldn't create the primary connection (attempt 8): fe_sendauth: no password supplied Mon May 9 16:23:40 2016 : WARNING: Couldn't create the primary connection (attempt 9): fe_sendauth: no password supplied Mon May 9 16:23:45 2016 : WARNING: Couldn't create the primary connection (attempt 10): fe_sendauth: no password supplied Mon May 9 16:23:45 2016 : ERROR: Stopping pgAgent: Couldn't establish the primary connection with the database server. ---<--------------------cut here---------------end--------------------->--- Does one *have* to supply a password for postgres? Thanks, -- Seb -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian