From: Guennadi V. Liakhovetski <G.Liakhovetski@sheffield.ac.uk>
To: pgsql-admin@postgresql.org
Subject: Authentication once again...
Date: Thu, 20 Apr 2000 10:18:02 +0100 (BST)
Message-ID: <Pine.GSO.4.21.0004201002180.22454-100000@acms11> (raw)
Dear all
I've just started using postgreSQL (on a network of SUNs) and immediately
have run into the 'famous' (as it appears from this mail-list
archive) authentication problem. And the question is quite simple (I wish
the answer was...): Can one make postgreSQL work in the following way:
If somebody attempts to access a database under a database username, which
coincides with the UNIX username of that person - trust him.
If somebody attempts to access a database under a database username
different from his/her UNIX username - ask for a password.
So far I find 'trust-mode' behaviour very cumbersome and insecure - once
you are logged into a machine, which has a 'trust' line in the
pg_hba.conf, you may access any databases (allowed for this machine) under
ANY database username WITHOUT passwords! I.e., say, you know, there is a
user john, you can type 'psql -u <basename>' then at a prompt
'Username: john', 'Password: blablabla' - and here you are!
Any ideas? Sorry for a long message
Regards
Guennadi
___
Dr. Guennadi V. Liakhovetski
Sheffield Centre for Earth Observation Science
Department of Applied Mathematics
University of Sheffield
Hicks Building, Hounsfield Road
Sheffield S3 7RH
phone: +44-(0)114-222-3798
fax: +44-(0)114-222-3739
email: G.Liakhovetski@sheffield.ac.uk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: G.Liakhovetski@sheffield.ac.uk
Subject: Re: Authentication once again...
In-Reply-To: <Pine.GSO.4.21.0004201002180.22454-100000@acms11>
References: <Pine.GSO.4.21.0004201002180.22454-100000@acms11>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox