From: Anthony E . Greene <agreene@pobox.com>
To: pgsql-admin@postgresql.org
Subject: Re: Multiple users, same DB
Date: Wed, 13 Sep 2000 04:03:59 -0400
Message-ID: <20000913040359.C15606@cp5340> (raw)
In-Reply-To: <Pine.LNX.4.21.0009122120050.6502-100000@linux2.johnmckown.net>
References: <Pine.LNX.4.21.0009122120050.6502-100000@linux2.johnmckown.net>
On 12 Sep 2000 22:21 John McKown wrote:
>On Tue, 12 Sep 2000, Jeremy Buchmann wrote:
>
>> Does anyone know how to create a postgresql user that can read/write to
an
>> existing database? I have used createuser, but it never asks if I want
the
>> new user to have access to an existing DB. When I connect to a DB with
that
>> new user, I can't read or write from any of the tables. Any
suggestions?
>>
>
>Logon as the database's owner. Now do a GRANT for the tables that the
>person should have access to. This is in the User's Guide, not the
>Administrator's Guide.
Within psql, use
\h grant
To get help on the command. There should also be man pages on SQL commands
in section l (lowercase "L"):
man l grant
man l revoke
The man page is a lot more informative than the brief usage info given in
psql.
--
Anthony E. Greene <agreene@pobox.com> <http://www.pobox.com/~agreene/;
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Linux. The choice of a GNU Generation. <http://www.linux.org/;
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: agreene@pobox.com
Subject: Re: Multiple users, same DB
In-Reply-To: <20000913040359.C15606@cp5340>
References: <Pine.LNX.4.21.0009122120050.6502-100000@linux2.johnmckown.net> <20000913040359.C15606@cp5340>
* 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