From: | Dino <dino(at)initl(dot)net> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | [INIMSS] problem with user privileges |
Date: | 2002-05-20 18:36:57 |
Message-ID: | 02052100065800.03618@yappee.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi,
I am trying with the user privileges in postgresql-7.1.3-1PGDG on RedHat 7.1 .
I followeb this procedure;
foo$ psql template1 postgres
template1=# create user dba with createdb createuser;
template1=# \q
foo$ psql template1 dba
template1=# create database mydb;
template1=# \q
foo$ psql mydb dba
mydb=# create table table_a (id int primary key, name char(10));
mydb=# create user dbu1;
mydb=# grant select,insert on table_a to dbu1;
Up to this all are working as expected. The user dbu1 can make only SELECT
and INSERT on table_a.
Then I added one more user (dbu2) using the command at psql prompt.
mydb=# create user dbu2;
When connected to the DataBase mydb as dbu2, the user cannot create database
on perform operations on table_a, but can create new tables and he has full
control over it.
Is there any way to prevent such a situation by revoking the permissions of
the user dbu2 on the database, so that he will not be able to connect to the
database?
Thank You
Dino
From | Date | Subject | |
---|---|---|---|
Next Message | andre | 2002-05-20 20:17:09 | Guarantee uniqueness of PGP key |
Previous Message | Oliver Elphick | 2002-05-20 18:35:37 | Re: A proposal for Interval Math |