Re: Why pg_dump 'trust' authentication fails under root and works under another user?

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Why pg_dump 'trust' authentication fails under root and works under another user?
Дата
Msg-id 4D8AFABB.1010002@lelarge.info
обсуждение исходный текст
Ответ на Why pg_dump 'trust' authentication fails under root and works under another user?  (Jaroslav Záruba <jaroslav.zaruba@gmail.com>)
Список pgsql-admin
Le 24/03/2011 08:34, Jaroslav Záruba a écrit :
> Hello
>
> I have pg_dump command in cron that accesses PostgreSQL under user postgres
> and does not provide a password.
>
> pg_dump --username=postgres ...
>
> I have set in pg_hba.conf that user postgres should be trusted for all
> databases from localhost.
>
> local all postgres trust
>
> When I run the command under regular user it works.
> When I run it under root (sudo -i) it requires password, and therefore the
> crontab task fails to authenticate.
>

Are you sure the password is not asked by the sudo command, rather than
by the pg_dump one?


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

В списке pgsql-admin по дате отправления:

Предыдущее
От: Jaroslav Záruba
Дата:
Сообщение: Why pg_dump 'trust' authentication fails under root and works under another user?
Следующее
От: lst_hoe02@kwsoft.de
Дата:
Сообщение: Re: About migration to Postgre