Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id D11922E0030 for ; Tue, 15 Apr 2008 09:17:43 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 19056-03 for ; Tue, 15 Apr 2008 09:17:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vilnius.balt.net (vilnius.balt.net [195.14.170.14]) by developer.postgresql.org (Postfix) with ESMTP id 4EA3F2E002E for ; Tue, 15 Apr 2008 09:17:41 -0300 (ADT) Received: from nSoft.lt (unknown [217.117.29.29]) by vilnius.balt.net (Postfix) with ESMTP id B8EE238BBBE for ; Tue, 15 Apr 2008 15:17:38 +0300 (EEST) Received: from [192.168.16.1] (unknown [192.168.16.1]) by nSoft.lt (Postfix) with ESMTP id 36031BEFC1 for ; Tue, 15 Apr 2008 16:05:41 +0000 (GMT) Message-ID: <48049CE2.1000008@nsoft.lt> Date: Tue, 15 Apr 2008 15:17:38 +0300 From: Julius Tuskenis User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 CC: pgsql-admin@postgresql.org Subject: Re: postgres 8.1 usermanagement problem References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.857 tagged_above=0 required=5 tests=AWL=-0.724, MISSING_HEADERS=1.581 X-Spam-Level: X-Archive-Number: 200804/143 X-Sequence-Number: 28907 Did you check the option "Inherits rights from parent roles" (parameter INHERIT in SQL) for user testus ? Dmitry Shubin rašė: > 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? > -- Julius Tuskenis