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

Поиск
Список
Период
Сортировка
Искать
От
Sam Mason
Тема
Re: How to know the password for the user 'postgres'
Дата
Msg-id
20081028154821.GY2459@frubble.xen.chris-lamb.co.uk
Ответ на
Список
Дерево обсуждения
How to know the password for the user 'postgres' "Shashank Sahni" <shredder12@gmail.com>
Re: How to know the password for the user 'postgres' Tony Caduto <tony_caduto@amsoftwaredesign.com>
Re: How to know the password for the user 'postgres' "Shashank Sahni" <shredder12@gmail.com>
Re: How to know the password for the user 'postgres' "Scott Marlowe" <scott.marlowe@gmail.com>
Re: How to know the password for the user 'postgres' Thomas <iamkenzo@gmail.com>
Re: How to know the password for the user 'postgres' Sam Mason <sam@samason.me.uk>
Re: How to know the password for the user 'postgres' Tom Lane <tgl@sss.pgh.pa.us>
Re: How to know the password for the user 'postgres' Sam Mason <sam@samason.me.uk>
Re: How to know the password for the user 'postgres' "Tim Bruce - Postgres" <postgres@tbruce.com>
Re: How to know the password for the user 'postgres' Stephane Bortzmeyer <bortzmeyer@nic.fr>
Re: How to know the password for the user 'postgres' Thomas <iamkenzo@gmail.com>
Re: How to know the password for the user 'postgres' Sam Mason <sam@samason.me.uk>
Re: How to know the password for the user 'postgres' "Scott Marlowe" <scott.marlowe@gmail.com>
Re: How to know the password for the user 'postgres' "Shashank Sahni" <shredder12@gmail.com>
Re: How to know the password for the user 'postgres' "Scott Marlowe" <scott.marlowe@gmail.com>
On Tue, Oct 28, 2008 at 08:57:30AM -0400, Tom Lane wrote:
> Sam Mason  writes:
> > 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?
> 
> True, but that might be safer overall than giving out sudo privileges.

As it was presented as an "easy trick" I wasn't sure if the OP had
realized he'd opened another account up on his system.  Thomas's other
reply suggests he's aware of the issue, but I was at least partially
responding for other readers to make them aware that running the command
will have other side effects.

> If the sysadmin and the DBA are the same person it hardly matters,
> but if you want the DBA to not have root, then giving him a password for
> the postgres account is the best way.  So it all depends on your
> local situation ...

Indeed it does!


  Sam
В списке pgsql-general по дате отправления
От: Tom Darci
Дата:
От: Sam Mason
Дата:
FAQ