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: 55da14450810280242s25901c17ye52ed53d9860981a@mail.gmail.com (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group