Re: Problems with user-level security

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problems with user-level security
Дата
Msg-id 20011107090246.N49204-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Problems with user-level security  (Nick Sayer <nsayer@quack.kfu.com>)
Ответы Re: Problems with user-level security  (Nick Sayer <nsayer@quack.kfu.com>)
Список pgsql-admin
On Tue, 6 Nov 2001, Nick Sayer wrote:

> Maybe it's just me, but I think pg_hba.conf needs a user column in it.
>
> On the one hand, I need
>
> local sameuser password
>
> because I have untrusted users who should only have access to their own
> databases.
>
> On the other hand, I do a nightly pg_dumpall as part of the backups so that
> I don't have to dump the actual database working areas. For that to work, I
> need to say
>
> local all password
>
> so that my backup script will work.
>
> What I *really* want is for an extra column to be added to pg_hba.conf to
> specify the user of interest. Like this:
>
> all     local sameuser password
> backups local all      password
> pgsql   local all      password
>
> Does this make any sense? Is there some way to achieve this I am missing?
> The only way I can do backups at the moment is introduce a race condition
> so that anyone can connect to any database they like at certain times of
> day. Not good.

If you're using password, couldn't you do this by specifying the file
to look up the passwords in (the optional last parameter) on the local
all line and then only put the backups/pgsql password in it.


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: update in rule
Следующее
От: Nick Sayer
Дата:
Сообщение: Re: Problems with user-level security