Received: from mailhub2.shef.ac.uk (mailhub2.shef.ac.uk [143.167.2.154]) by hub.org (8.9.3/8.9.3) with ESMTP id FAA62094 for ; Thu, 20 Apr 2000 05:18:19 -0400 (EDT) (envelope-from g.liakhovetski@sheffield.ac.uk) Received: from acms11.shef.ac.uk ([143.167.4.11] helo=acms11) by mailhub2.shef.ac.uk with esmtp (Exim 3.02 #2) id 12iD6D-0005yu-00 for pgsql-admin@postgresql.org; Thu, 20 Apr 2000 10:18:13 +0100 Date: Thu, 20 Apr 2000 10:18:02 +0100 (BST) From: "Guennadi V. Liakhovetski" X-Sender: ap1gvl@acms11 To: pgsql-admin@postgresql.org Subject: Authentication once again... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200004/77 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 ' 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