Re: How to revoke "Create Privilege" from a readonly user inpostgres?

Поиск
Список
Период
Сортировка
Искать
От
Rui DeSousa
Тема
Re: How to revoke "Create Privilege" from a readonly user inpostgres?
Дата
Msg-id
B71F44B3-023E-41A4-9B38-FEB4417F546C@crazybean.net
Ответ на
Список
Дерево обсуждения
Re: How to revoke "Create Privilege" from a readonly user inpostgres? pavan95 <pavan.postgresdba@gmail.com>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: How to revoke "Create Privilege" from a readonly user in postgres? Shreeyansh Dba <shreeyansh2014@gmail.com>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? pavan95 <pavan.postgresdba@gmail.com>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? Rui DeSousa <rui@crazybean.net>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? pavan95 <pavan.postgresdba@gmail.com>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? Rui DeSousa <rui@crazybean.net>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? pavan95 <pavan.postgresdba@gmail.com>
Re: How to revoke "Create Privilege" from a readonly user inpostgres? Rui DeSousa <rui@crazybean.net>
First I don’t know what I was thinking… I think this only change the default for the current use… not all users; I just never use this form.

alter default privileges in schema readonly grant select on tables to readonly;



> On Nov 7, 2018, at 2:08 AM, pavan95  wrote:
> 
> Rui,
> 
> Thanks for responding. I'm perfectly alright with this approach. But can we
> do the same in "PUBLIC" schema??
> 

Yeah; but why I think it already defaults to that; like I said before you should drop the public schema and not use it.

The other option is to revoke from the public role on the public schema.

I normally create a schema owner user that owns the objects and is only use for creating objects.  Then I alter it default privileges to grant what ever access the application needs and other user role needs, etc.  It’s always better to be granular if you development model supports it instead of sweeping rules.
В списке pgsql-admin по дате отправления
От: Achilleas Mantzios
Дата:
От: Mark Steben
Дата:
FAQ