Ownership change doesn't change privileges

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Ownership change doesn't change privileges
Date: 2003-06-20 11:27:12
Message-ID: Pine.LNX.4.44.0306201147380.2297-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When you change the owner of a table and relacl is null, then the new
owner obtains all privileges, because the default privileges apply to the
current owner. But when relacl is not null, the old owner retains all
privileges and the new owner has none.

Perhaps the privileges of the owner should be represented with a different
flag in the aclitem, alongside world, group, public?

Currently, changing the table ownership requires superuser privileges, so
this situation can be fixed manually. But when groups can own tables and
users can move table ownerships between their groups (in a way to be
defined), this can be trickier.

Ideas?

--
Peter Eisentraut peter_e(at)gmx(dot)net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeroen T. Vermeulen 2003-06-20 12:30:42 Re: Access to transaction status
Previous Message Justin Clift 2003-06-20 10:59:08 Re: Two weeks to feature freeze