Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B3D6D475AC1 for ; Mon, 20 May 2002 15:04:31 -0400 (EDT) Received: from mailvs.eth.net (unknown [202.9.174.30]) by postgresql.org (Postfix) with ESMTP id AA64A476354 for ; Mon, 20 May 2002 14:29:14 -0400 (EDT) Received: from smtp1.eth.net ([202.9.178.22]) by mailvs.eth.net with Microsoft SMTPSVC(5.0.2195.4453); Tue, 21 May 2002 00:05:11 +0530 Received: from 202.9.186.234 by smtp1.eth.net (InterScan E-Mail VirusWall NT); Tue, 21 May 2002 00:10:00 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Reply-To: dino@initl.net Organization: INI Technologies To: pgsql-sql@postgresql.org Subject: [INIMSS] problem with user privileges Date: Tue, 21 May 2002 00:06:57 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02052100065800.03618@yappee.co.in> Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 20 May 2002 18:35:12.0046 (UTC) FILETIME=[137FB4E0:01C2002D] X-Archive-Number: 200205/208 X-Sequence-Number: 7843 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