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

From Christoph Berg
Subject Re: no password on postgres user and pgagent
Date
Msg-id 20160510090828.GA7473@msg.df7cb.de
Whole thread Raw
In response to no password on postgres user and pgagent  (Seb <spluque@gmail.com>)
List pgsql-pkg-debian
Re: Seb 2016-05-10 <87r3daopfm.fsf@otaria.sebmel.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 <pgagent_start.sh> ---------------------------------------------- ]
> #! /bin/sh
>
> pgagent user=postgres host=localhost dbname=postgres

The default pg_hba.conf requires md5 passwords for "host=localhost"
connections. If you remove that connection parameter, a passwordless
UNIX socket connection will be used. (In which case pgagent must be
running as the "postgres" OS user.)

Christoph


pgsql-pkg-debian by date:

Previous
From: Seb
Date:
Subject: no password on postgres user and pgagent
Next
From: Sebastian P. Luque
Date:
Subject: Re: no password on postgres user and pgagent