pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Shubin <dm.shubin@gmail.com>
To: pgsql-admin@postgresql.org
Subject: postgres 8.1 usermanagement problem
Date: Tue, 15 Apr 2008 16:07:44 +0400
Message-ID: <c0b9243d0804150507s3315da2k1bb6ca8c3073f89b@mail.gmail.com> (raw)

Hallo to all! I use Postgres 8.1 and i've got problem in its usermanagement.

Here is me roles list:
nausd=# \du
List of roles
Role name | Superuser | Create role | Create DB | Connections | Member of
-------------+-----------+-------------+-----------+-------------+--------------
dss0 | yes | yes | yes | no limit |
georgyd | no | no | no | no limit | {nausd_read}
joe | no | no | no | no limit |
nausd | no | no | no | no limit |
nausd_read | no | no | no | no limit |
postgres | yes | yes | yes | no limit |
sagach_user | no | no | no | no limit |
system | no | no | no | no limit |
testgrp | no | no | no | no limit |
testus | no | no | no | no limit | {testgrp}
ttest | no | no | no | no limit |
(11 rows)

testus - user is a member of the testgrp

Then I changed permission in table tbl_a_a_container from database nausd:

nausd=# \z
Access privileges for database "nausd"
Schema | Name | Type | Access privileges
--------+--------------------------------+----------+----------------------------------------------------------------
public | tbl_a_a_container | table |
{nausd=arwdRxt/nausd,nausd_read=r/nausd,testgrp=arwdRxt/nausd}

So, we can see all rights for group testgrp and correspondingly for testus.

But when I logging to databes nausd with user testus and try to select from
tbl_a_a_container - I got error: permission denied for relation
tbl_a_a_container

What's wrong?

view thread (2+ messages)  latest in thread

Message-ID: <c0b9243d0804150507s3315da2k1bb6ca8c3073f89b@mail.gmail.com>
Permalink:  ../c0b9243d0804150507s3315da2k1bb6ca8c3073f89b@mail.gmail.com/
Also on:    postgresql.org/message-id/c0b9243d0804150507s3315da2k1bb6ca8c3073f89b@mail.gmail.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-admin@postgresql.org
  Cc: dm.shubin@gmail.com
  Subject: Re: postgres 8.1 usermanagement problem
  In-Reply-To: <c0b9243d0804150507s3315da2k1bb6ca8c3073f89b@mail.gmail.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