pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Pallav Kalva <pkalva@deg.cc>
Cc: pgsql-sql@postgresql.org
Subject: Re: Permissions not working
Date: Thu, 29 Apr 2004 15:26:01 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0404291522430.10983-100000@css120.ihs.com> (raw)
In-Reply-To: <40916B36.8070802@deg.cc>

On Thu, 29 Apr 2004, Pallav Kalva wrote:

> Hi ,
> 
>     I am having some problems with setting up permissions in Postgres. I 
> have a database for ex: 'ups' and it was owned previously by 
> 'postgres(superuser)' but now i have changed the ownership to new user 
> 'ups' all the tables are owned by these user 'ups'. This database doesnt 
> have any schemas except for 'Public'. I have created another user lets 
> say 'test' and i didnt give 'test' user any permissions to access the 
> tables owned by 'ups' but still when i login to 'ups' database as  psql 
> ups  test and run a select on the  tables owned by 'ups' database  it 
> goes through.
>    I dont want  user 'test' to access any tables from the 'ups' 
> database, i tried revoking permissions it still doesnt work. Can anyone 
> tell me what is wrong here ?

Log in as the superuser (usually postgres) and see what you get from this 
query:

select usesuper from pg_shadow where usename='test';

if usesuper is t, then test is a superuser and can do anything he wants.  
You need to issue the command:

alter user test with nocreateuser;

If that isn't the problem, let us know.




view thread (14+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0404291522430.10983-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0404291522430.10983-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0404291522430.10983-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@ihs.com, pkalva@deg.cc
  Subject: Re: Permissions not working
  In-Reply-To: <Pine.LNX.4.33.0404291522430.10983-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox