Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D3480B5DCB7 for ; Thu, 1 Sep 2011 10:54:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 33771-06 for ; Thu, 1 Sep 2011 13:54:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from delta01.pnet.xcon.it (delta01.pnet.xcon.it [62.48.53.16]) by mail.postgresql.org (Postfix) with ESMTP id 5D231B5DC63 for ; Thu, 1 Sep 2011 10:54:38 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by delta01.pnet.xcon.it (Postfix) with ESMTP id 622331033F50D; Thu, 1 Sep 2011 15:54:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at delta01.pnet.xcon.it Received: from delta01.pnet.xcon.it ([127.0.0.1]) by localhost (delta01.pnet.xcon.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6uJLutPO9j6h; Thu, 1 Sep 2011 15:54:34 +0200 (CEST) Received: from webmail.xcon.it (delta02.pnet.xcon.it [62.48.53.98]) (Authenticated sender: gabriele.bartolini@2ndquadrant.it) by delta01.pnet.xcon.it (Postfix) with ESMTPSA id BFE181033F505; Thu, 1 Sep 2011 15:54:34 +0200 (CEST) Received: from eggIB-wan.comune.prato.it ([193.43.108.2]) by webmail.xcon.it with HTTP (HTTP/1.1 POST); Thu, 01 Sep 2011 15:54:34 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Sep 2011 15:54:34 +0200 From: Gabriele Bartolini To: "Campbell, Lance" Cc: Subject: Re: Password when logging into postgres In-Reply-To: References: Message-ID: <7f3d59de730b7a9be663deda073e5e05@2ndquadrant.it> X-Sender: Gabriele.Bartolini@2ndQuadrant.it User-Agent: [X]con Webmail/0.4.2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/6 X-Sequence-Number: 38243 Hi Lance, > I reinstalled postgres from scratch receintly. I recreated a role > with createrole called XYZ. I do not want XYZ to use a password on my > local box. How do I set this up so that it will not ask for a > password? You have two options: 1) insert a line in ~/.pgpass file in your home directory for that database user (http://www.postgresql.org/docs/9.0/static/libpq-pgpass.html) 2) insert a 'trust' rule for that user in the pg_hba.conf for local connections (http://www.postgresql.org/docs/9.0/static/auth-pg-hba-conf.html) I would personally go with #1 in production environment. Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it