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: 55da14450810280242s25901c17ye52ed53d9860981a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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
remote.

In response to

Responses

Browse pgsql-general by date

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