From: | "Henriksen, Jonas F" <jonas(dot)f(dot)henriksen(at)imr(dot)no> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | about permissions... |
Date: | 2004-10-13 08:39:15 |
Message-ID: | 1612616523F26F48AB55BC8F5D47917C03CBD233@post2.imr.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
how come, if you create a user with no permissions at all, having been granted nothing, he can still log into any database, list available tables, create new here, and then delete them again. Seems odd...:
medusa:~% createuser odd
Shall the new user be allowed to create databases? (y/n) n
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
medusa:~% psql -U odd cnv
Welcome to psql 7.3.7, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
cnv=> \dt
List of relations
Schema | Name | Type | Owner
--------+---------------+-------+---------
public | theaders | table | jonasfh
public | theadervalues | table | jonasfh
(2 rows)
cnv=> create table oddtable();
CREATE TABLE
cnv=> \dt
List of relations
Schema | Name | Type | Owner
--------+---------------+-------+---------
public | oddtable | table | odd
public | theaders | table | jonasfh
public | theadervalues | table | jonasfh
(3 rows)
cnv=> drop table oddtable;
DROP TABLE
Is this right, or is there something wrong with my settings in some way?
regards Jonas:))
--
Jonas F Henriksen
Institute of Marine Research
Norsk Marint Datasenter
PO Box 1870 Nordnes
5817 Bergen
Norway
Phone: +47 55238441
From | Date | Subject | |
---|---|---|---|
Next Message | fx gamoy | 2004-10-13 08:55:30 | adding two tables |
Previous Message | Richard Huxton | 2004-10-13 08:27:20 | Re: LISTEN/NOTIFY for lightweight replication |