Re: no password on postgres user and pgagent - Mailing list pgsql-pkg-debian

From Sebastian P. Luque
Subject Re: no password on postgres user and pgagent
Date
Msg-id 87a8jwstef.fsf@otaria.sebmel.org
Whole thread Raw
In response to no password on postgres user and pgagent  (Seb <spluque@gmail.com>)
Responses Re: no password on postgres user and pgagent  (Christoph Berg <myon@debian.org>)
List pgsql-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

pgsql-pkg-debian by date:

Previous
From: Christoph Berg
Date:
Subject: Re: no password on postgres user and pgagent
Next
From: Christoph Berg
Date:
Subject: Re: no password on postgres user and pgagent