From: Sebastian P. Luque <spluque@gmail.com>
To: pgsql-pkg-debian@postgresql.org
Subject: Re: no password on postgres user and pgagent
Date: Wed, 11 May 2016 06:53:12 -0500
Message-ID: <87a8jwstef.fsf@otaria.sebmel.org> (raw)
References: <87r3daopfm.fsf@otaria.sebmel.org>
<20160510090828.GA7473@msg.df7cb.de>
<87d1ouvz6v.fsf@otaria.sebmel.org>
<20160510142030.GD7473@msg.df7cb.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
On Tue, 10 May 2016 16:20:31 +0200,
Christoph Berg <cb@df7cb.de> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-pkg-debian@postgresql.org
Cc: spluque@gmail.com
Subject: Re: no password on postgres user and pgagent
In-Reply-To: <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> <87a8jwstef.fsf@otaria.sebmel.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox