Re: Passwords in PSQL

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Rafaqat Ali <smoken0(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Passwords in PSQL
Date: 2005-04-25 07:36:42
Message-ID: Pine.LNX.4.58.0504251735140.1576@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 25 Apr 2005, Rafaqat Ali wrote:

> Hello All
> I am using
> \c [database] [user-name]
> to connect to any database.
> Any one can connect to any database. If any one knows user
> name, he/she connect to db. I want to provide some security that no
> one can connect without providing passwords. postgres uses a function
> do_coonect() for this perpose. I provide it passwords but it let me
> connect to db with any passwords provided. Can any one tell me how to
> set passwords for db user. and how can I implement password protection
> in psql.

http://www.postgresql.org/docs/8.0/static/client-authentication.html

In particular: "authentication-method".

And:

http://www.postgresql.org/docs/8.0/static/sql-createuser.html

Please address general PostgreSQL questions to the pgsql-general mailing
list in the future.

Thanks

Gavin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-04-25 07:38:22 Re: Passwords in PSQL
Previous Message Rafaqat Ali 2005-04-25 06:36:22 Passwords in PSQL