|
|
| · · · · · · · | |
pgAdmin 1.6 online documentation5.6. PrivilegesWhen you create a database object, you become its owner. By default, only the owner of an object can do anything with the object. In order to allow other users to use it, privileges must be granted. (However, users that have the superuser attribute can always access any object.) There are several different privileges: The right to modify or destroy an object is always the privilege of the owner only. Note To change the owner of a table, index, sequence, or view, use the
ALTER TABLE
command. There are corresponding To assign privileges, the GRANT UPDATE ON accounts TO joe;
Writing The special “user” name To revoke a privilege, use the fittingly named
REVOKE ALL ON accounts FROM PUBLIC;
The special privileges of the object owner (i.e., the right to do
Ordinarily, only the object's owner (or a superuser) can grant or revoke privileges on an object. However, it is possible to grant a privilege “with grant option”, which gives the recipient the right to grant it in turn to others. If the grant option is subsequently revoked then all who received the privilege from that recipient (directly or through a chain of grants) will lose the privilege. For details see the GRANT and REVOKE reference pages. |