Re: Too easy to log in as the "postgres" user?

Поиск
Список
Период
Сортировка
Искать
От
A. Kretschmer
Тема
Re: Too easy to log in as the "postgres" user?
Дата
Msg-id
20091015104802.GA19172@a-kretschmer.de
Ответ на
Список
Дерево обсуждения
Too easy to log in as the "postgres" user? Thom Brown <thombrown@gmail.com>
Re: Too easy to log in as the "postgres" user? Glyn Astill <glynastill@yahoo.co.uk>
Re: Too easy to log in as the "postgres" user? "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: Too easy to log in as the "postgres" user? Thom Brown <thombrown@gmail.com>
Re: Too easy to log in as the "postgres" user? Stephen Frost <sfrost@snowman.net>
Re: Too easy to log in as the "postgres" user? Thom Brown <thombrown@gmail.com>
Re: Too easy to log in as the "postgres" user? Stephen Frost <sfrost@snowman.net>
Re: Too easy to log in as the "postgres" user? Andrew Bailey <hazlorealidad@gmail.com>
Re: Too easy to log in as the "postgres" user? Stephen Frost <sfrost@snowman.net>
In response to Thom Brown :
> I've noticed that if I just log in to my server, I don't su to root,
> or become the postgres user, I can get straight into the database as
> the postgres user merely with "psql -U postgres -h localhost".  My
> user account isn't a member of the postgres group.
> 
> It appears I've not applied my security settings correctly.  What can
> I do to prevent access this way?  I'd still want to be able to su to
> the postgres user and log in that way, but not with the -U parameter
> allowing access.
> 
> The pg_hba.conf is probably relevant here, so this is the setup:
> 
> # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
> 
> # "local" is for Unix domain socket connections only
> local   all         all                               trust
> # IPv4 local connections:
> host    all         all         127.0.0.1/32          trust
> # IPv6 local connections:
> host    all         all         ::1/128               trust

Try to change trust to sameuser.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
В списке pgsql-general по дате отправления
От: Albe Laurenz
Дата:
От: Glyn Astill
Дата:
FAQ