Re: authenticating local users

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Green <cmg(at)uab(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: authenticating local users
Date: 2000-12-30 06:24:39
Message-ID: 2298.978157479@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Green <cmg(at)uab(dot)edu> writes:
> For local users, is there anyway to have users only be able to connect
> to the postmaster as the name associated with their current uid?

You could use ident authentication with the 'sameuser' restriction,
ie

host all 127.0.0.1 255.255.255.255 ident sameuser

You have to be running an identd daemon, and you have to tell your
users to connect to host localhost instead of the default Unix-socket
connection. (AFAIK, ident doesn't work with Unix-socket connections.)
Setting PGHOST=localhost in the user environment is a fairly painless
answer to the latter problem though.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-12-30 06:38:05 Re: Re: Failed Statements within Transactions
Previous Message Tom Lane 2000-12-30 05:51:20 Re: Disconnected Backends