Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0SiF-0005bR-EJ for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 11 May 2016 11:53:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b0SiF-00068O-0U for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 11 May 2016 11:53:59 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b0SiB-00064H-3E for pgsql-pkg-debian@postgresql.org; Wed, 11 May 2016 11:53:55 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b0Si0-0005mh-4Q for pgsql-pkg-debian@postgresql.org; Wed, 11 May 2016 11:53:54 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b0Shx-00066E-Je for pgsql-pkg-debian@postgresql.org; Wed, 11 May 2016 13:53:41 +0200 Received: from s0106503955564c1f.wp.shawcable.net ([24.77.135.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2016 13:53:41 +0200 Received: from spluque by s0106503955564c1f.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2016 13:53:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-pkg-debian@postgresql.org From: Sebastian P. Luque Subject: Re: no password on postgres user and pgagent Date: Wed, 11 May 2016 06:53:12 -0500 Organization: Church of Emacs Lines: 27 Message-ID: <87a8jwstef.fsf@otaria.sebmel.org> References: <87r3daopfm.fsf@otaria.sebmel.org> <20160510090828.GA7473@msg.df7cb.de> <87d1ouvz6v.fsf@otaria.sebmel.org> <20160510142030.GD7473@msg.df7cb.de> 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:hCjK6QWUZJrszwvfawIEQjuqRnI= X-Pg-Spam-Score: -2.9 (--) 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 On Tue, 10 May 2016 16:20:31 +0200, Christoph Berg wrote: [...] >> which is what I want; i.e. get user name from the operating system >> user and check that it matches requested database user name. If I >> understand right, this means that if I sudo or login as postgres, >> then that's what PostgreSQL gets. If postgres has no password and I >> can login without one, then the database server shouldn't ask for >> one. Why does pgagent expect one? > Because you try "host=localhost" which doesn't match the line you are > citing. Look for host...md5. You're absolutely absolutely, and I had forgotten a few things about this. Things work as I expected when leaving out the "host" specification in the call to pgagent. This got me thinking whether it's a good idea to leave the postgres user without a password. The system is inside a work network, and a handful of users, both of which are trustworthy. But perhaps it would still be safer to create a password for postgres. Thanks for your help, -- 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