From: | Gabriele Bartolini <Gabriele(dot)Bartolini(at)2ndQuadrant(dot)it> |
---|---|
To: | "Campbell, Lance" <lance(at)illinois(dot)edu> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Password when logging into postgres |
Date: | 2011-09-01 13:54:34 |
Message-ID: | 7f3d59de730b7a9be663deda073e5e05@2ndquadrant.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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(dot)Bartolini(at)2ndQuadrant(dot)it - www.2ndQuadrant.it
From | Date | Subject | |
---|---|---|---|
Next Message | Marc Cousin | 2011-09-01 14:10:52 | pg_restore -j mixed and missing lines of output |
Previous Message | Scott Marlowe | 2011-09-01 13:52:47 | Re: Password when logging into postgres |