Syntax:

ALTER TABLE <table> OWNER TO <newowner>

Security:

The owner of a table will be able to change the owner to any other user.
The superuser will NOT have special privileges.

-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008

Fri, 08 Sep 2000 09:26:12 -0400
"Mark Hollomon" <mhh@nortelnetworks.com>
Proposal : changing table ownership
"Mark Hollomon" <mhh@nortelnetworks.com> writes:
> ALTER TABLE <table> OWNER TO <newowner>

> The owner of a table will be able to change the owner to any other user.

Doesn't this create risks parallel to file give-away (chown) in Unix?
A lot of Unices disallow chown except to the superuser.

Tables aren't currently active objects, but we've been talking about
things like making trigger functions run "setuid" to the table owner.
If that happens then table ownership giveaway is a big security hole.

> The superuser will NOT have special privileges.

Say *what* ?  That's just silly.

			regards, tom lane

Fri, 08 Sep 2000 10:43:56 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal : changing table ownership 
On Fri, 8 Sep 2000, Tom Lane wrote:

> "Mark Hollomon" <mhh@nortelnetworks.com> writes:
> > ALTER TABLE <table> OWNER TO <newowner>
> 
> > The owner of a table will be able to change the owner to any other user.
> 
> Doesn't this create risks parallel to file give-away (chown) in Unix?
> A lot of Unices disallow chown except to the superuser.

Agreed ...

> Tables aren't currently active objects, but we've been talking about
> things like making trigger functions run "setuid" to the table owner.
> If that happens then table ownership giveaway is a big security hole.
> 
> > The superuser will NOT have special privileges.
> 
> Say *what* ?  That's just silly.

*Only* superuser should be able to run the above command ... 


Fri, 8 Sep 2000 11:54:30 -0300 (ADT)
The Hermit Hacker <scrappy@hub.org>
Re: Proposal : changing table ownership 
The Hermit Hacker wrote:
>
> > "Mark Hollomon" <mhh@nortelnetworks.com> writes:
> > > ALTER TABLE <table> OWNER TO <newowner>
>
> *Only* superuser should be able to run the above command ...


Fine with me.

-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008

Fri, 08 Sep 2000 11:30:37 -0400
"Mark Hollomon" <mhh@nortelnetworks.com>
Re: Proposal : changing table ownership