Re: permissions - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: permissions
Date
Msg-id Pine.LNX.4.44.0302220301100.2067-100000@peter.localdomain
Whole thread Raw
In response to permissions  (Roger Koot <roger@solidair.nl>)
List pgsql-general
Roger Koot writes:

> su - postgres
> createuser -d -a -w test
> createdb -U test test1
> createuser -U test -D -A -w user1
> createuser -U test -D -A -w user2
> ...
> createuser -U test -D -A -w user10
> psql -U test -d test1
> create group users with user user1;
> create group users with user user2;
> ..
> create group users with user user10;
> create table table1 ( val1 varchar(40, val2 text, val3 char(2));
> grant all on table1 to group users;

Check the errors produced by your commands.  For example, the repeated
create group commands will fail because the group already exists.
Possibly you also missed some other problems this way.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-general by date:

Previous
From: Dmitry Tkach
Date:
Subject: Re: Foreign Key with Constant
Next
From: Peter Eisentraut
Date:
Subject: Re: How to update rows from a cursor in PostgreSQL