Received: from mailout4-0.nyroc.rr.com (mailout4-1.nyroc.rr.com [24.92.226.166]) by hub.org (8.10.1/8.10.1) with ESMTP id e8D84Ss33789 for ; Wed, 13 Sep 2000 04:04:28 -0400 (EDT) Received: from cp5340.localdomain (tmp1-11746.twcny.rr.com [24.161.117.70]) by mailout4-0.nyroc.rr.com (8.9.3/8.9.3) with ESMTP id EAA04493 for ; Wed, 13 Sep 2000 04:00:02 -0400 (EDT) Received: (from agreene@localhost) by cp5340.localdomain (8.9.3/8.9.3) id EAA16234 for pgsql-admin@postgresql.org; Wed, 13 Sep 2000 04:04:00 -0400 Date: Wed, 13 Sep 2000 04:03:59 -0400 From: "Anthony E . Greene" To: pgsql-admin@postgresql.org Subject: Re: Multiple users, same DB Message-ID: <20000913040359.C15606@cp5340> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: ; from joarmc@swbell.net on Tue, Sep 12, 2000 at 22:21:20 -0400 X-Mailer: Balsa 0.9.2 X-Archive-Number: 200009/39 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 PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D Linux. The choice of a GNU Generation.