Re: [GENERAL] Grant problems

From: "J(dot) Roeleveld" <j(dot)roeleveld(at)softhome(dot)net>
To: "Balazs Gyetvai" <balazs(at)securities(dot)hu>, <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Grant problems
Date: 2000-01-20 10:34:19
Message-ID: 00b101bf6331$eb731b80$8402a8c0@sentec.demon.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Hello
>
> I like to create a user who can do the followings on a table: select,
> insert, update
> But he can't delete!
> I tried this: grant INSERT, SELECT, UPDATE on table_name to testuser;
> After this the test user can delete from the table_name table without any
> problems. The testuser is not a superuser.
>
> Plz help, Thanks, Bye

Do the following first:

REVOKE ALL ON "table_name" FROM PUBLIC;

this takes all permissions away from the Public, eg. all users, including
the testuser....

hope this helps,

with kind regards,

Joost Roeleveld

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rachel Greenham 2000-01-20 11:03:23 Back-end dying on timestamp value insert
Previous Message Balazs Gyetvai 2000-01-20 10:06:30 Grant problems