Re: Permission issues. Please help

Поиск
Список
Период
Сортировка
От Steven Crandell
Тема Re: Permission issues. Please help
Дата
Msg-id CALvesgnKgeG3WuWJwOimD0-Gs4HikOaY6A89LK5YvJRUR6HG=w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Permission issues. Please help  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы RE: Permission issues. Please help
Список pgsql-admin


On Tue, Mar 13, 2018 at 8:52 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Tuesday, March 13, 2018, Richard Gbs <richardgbs@yahoo.com> wrote:
I need to have user1,2 and 3 have all the same privileges against any obeject in the database created by any of them.

Can someone give a high level approach to this please?

Create a group with all three as members.  Have them assign ownership of created objects to said group.

Maybe not the most secure but should meet your stated goal.

David J.

default privileges might also prove useful in making a setup like this easier to maintain over the long-term.
e.g.
ALTER DEFAULT PRIVILEGES FOR USER user1 IN SCHEMA public GRANT SELECT ON TABLES TO user2;

YMMV, but something like this would ensure that user2 is automatically granted SELECT on any tables created by user1 in schema public.
Combine with role inheritance to help cut down on the number of total default privs required
\ddp to view default privs

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Permission issues. Please help
Следующее
От: Azimuddin Mohammed
Дата:
Сообщение: whitelist ip for postgres