Re: psql -U postgres does not require a password

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Silvan Calarco <silvan(at)goemon(dot)polito(dot)it>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql -U postgres does not require a password
Date: 2000-11-06 16:02:41
Message-ID: Pine.LNX.4.21.0011061701100.776-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Silvan Calarco writes:

> psql database_name -U postgres
>
> I'm not asked for a password and every user can access the database with
> postgres privileges.

psql only asks for a password if the server requires password
authentication. Look into pg_hba.conf how to set that up. (Might be in
/var/lib/pgsql/... on your system.)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lamar Owen 2000-11-06 16:44:36 Re: psql -U postgres does not require a password
Previous Message Dr. Hans-Christian Waldmann 2000-11-06 11:37:59 Re: psql -U postgres does not require a password