Re: How to know the password for the user 'postgres' - Mailing list pgsql-general

From Sam Mason
Subject Re: How to know the password for the user 'postgres'
Date
Msg-id 20081028123217.GU2459@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: How to know the password for the user 'postgres'  (Thomas <iamkenzo@gmail.com>)
Responses Re: How to know the password for the user 'postgres'  (Thomas <iamkenzo@gmail.com>)
Re: How to know the password for the user 'postgres'  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Oct 28, 2008 at 10:42:47AM +0100, Thomas wrote:
> 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.

Won't that allow logins to the postgres account then?  If there's no
password then logins (either locally, ssh, or whatever is configured)
can't happen and your data is going to be safer.  Going in through root
first may require five more characters to be typed (or less if you
create an alias), but wont create any backdoors.


  Sam

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Archiving WAL for 7.4.21
Next
From: Sam Mason
Date:
Subject: Re: Piping CSV data to psql when executing COPY .. FROM STDIN