Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b03ee-0002lF-Cw for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 10 May 2016 09:08:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b03ed-0000Sn-Qh for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 10 May 2016 09:08:35 +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 1b03ed-0000Sg-D2 for pgsql-pkg-debian@postgresql.org; Tue, 10 May 2016 09:08:35 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b03ea-0004BA-Gp for pgsql-pkg-debian@postgresql.org; Tue, 10 May 2016 09:08:34 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3r3tgD2z0Jz3Dwl; Tue, 10 May 2016 11:07:20 +0200 (CEST) Date: Tue, 10 May 2016 11:08:28 +0200 From: Christoph Berg To: Seb Cc: pgsql-pkg-debian@postgresql.org Subject: Re: no password on postgres user and pgagent Message-ID: <20160510090828.GA7473@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Seb , pgsql-pkg-debian@postgresql.org References: <87r3daopfm.fsf@otaria.sebmel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r3daopfm.fsf@otaria.sebmel.org> User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -4.0 (----) 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 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 ---------------------------------------------- ] > #! /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 -- 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