Re: Deny creation of tables for a user

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deny creation of tables for a user
Дата
Msg-id 10790.1208962830@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deny creation of tables for a user  ("Roberts, Jon" <Jon.Roberts@asurion.com>)
Список pgsql-general
"Roberts, Jon" <Jon.Roberts@asurion.com> writes:
> You probably want to also "REVOKE ALL ON SCHEMA public FROM public;" so
> users can't create objects in that schema.

More like REVOKE CREATE ..., unless your intent is also to deny access
to existing stuff in the public schema.

You'd also want to make sure the user doesn't have CREATE privilege
on the database, lest he create his own schema and then make tables
within that.  (This is off by default, though.)

Lastly, if you don't want him creating even temp tables, you'd need to
revoke TEMP privilege on the database from public.

Having revoked all these privileges from public, you'd need to grant 'em
back to whichever individual users should have them.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tsearch2 problem
Следующее
От: "Gabor Siklos"
Дата:
Сообщение: Backup setup