Skip site navigation (1) Skip section navigation (2)

Re: How to know the password for the user 'postgres'

From: Thomas <iamkenzo(at)gmail(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "Shashank Sahni" <shredder12(at)gmail(dot)com>, "Tony Caduto" <tony_caduto(at)amsoftwaredesign(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to know the password for the user 'postgres'
Date: 2008-10-28 09:42:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
An easy trick I have found to set postgres password: $ sudo passwd
postgres, and now you can type a new password. So now you can switch
user with: $ su postgres, and then connect to the DB with psql.

Beware of pg_hba.conf, it is a bit tricky to understand how the
mechanism of authentification works whether you are on localhost or

In response to


pgsql-general by date

Next:From: Mohd AlkhaldiDate: 2008-10-28 10:25:05
Subject: Archiving WAL for 7.4.21
Previous:From: Gregory StarkDate: 2008-10-28 08:47:56
Subject: Re: PostgreSQL 8.3.3 chooses wrong query plan when LIMIT 1 added?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group