Drop user doesn't drop granted privs?

Поиск
Список
Период
Сортировка
Искать

Drop user doesn't drop granted privs?

От:
Pete Deffendol <peter.deffendol@gmail.com>
Дата:
Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a user's privileges on tables when that user is dropped.  The privileges are still showing up if I do a \z in psql, but with the SYSID instead of the username (obviously, since the username doesn't exist.)  Is there an easy way to remove the privileges, either at the same time a user is dropped, or afterwards?

Pete

Re: Drop user doesn't drop granted privs?

От:
Stephen Frost <sfrost@snowman.net>
Дата:
Вложения:
* Pete Deffendol (peter.deffendol@gmail.com) wrote:
> Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a
> user's privileges on tables when that user is dropped.  The privileges are
> still showing up if I do a \z in psql, but with the SYSID instead of the
> username (obviously, since the username doesn't exist.)  Is there an easy
> way to remove the privileges, either at the same time a user is dropped, or
> afterwards?

8.1 has improvments in this area...

	Thanks,

		Stephen

Re: Drop user doesn't drop granted privs?

От:
Jaime Casanova <systemguards@gmail.com>
Дата:
On 1/6/06, Pete Deffendol  wrote:
> Correct me if I'm wrong, but it seems that PostgreSQL 7.4 does not remove a
> user's privileges on tables when that user is dropped.  The privileges are
> still showing up if I do a \z in psql, but with the SYSID instead of the
> username (obviously, since the username doesn't exist.)  Is there an easy
> way to remove the privileges, either at the same time a user is dropped, or
> afterwards?
>
> Pete
>
>

you haveto create a user with that SYSID, the REVOKE the privileges
and the drop the user...

8.1 is better in this area...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
FAQ