pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Multiple users, same DB
3+ messages / 3 participants
[nested] [flat]

* Multiple users, same DB
@ 2000-09-12 22:50 Jeremy Buchmann <jeremy@wellsgaming.com>
  2000-09-13 02:21 ` Re: Multiple users, same DB John McKown <joarmc@swbell.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Jeremy Buchmann @ 2000-09-12 22:50 UTC (permalink / raw)
  To: pgsql-admin

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?

--
Jeremy Buchmann
System Admin/Database Programmer
Wells Gaming Research



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Multiple users, same DB
  2000-09-12 22:50 Multiple users, same DB Jeremy Buchmann <jeremy@wellsgaming.com>
@ 2000-09-13 02:21 ` John McKown <joarmc@swbell.net>
  2000-09-13 08:03   ` Re: Multiple users, same DB Anthony E . Greene <agreene@pobox.com>
  0 siblings, 1 reply; 3+ messages in thread

From: John McKown @ 2000-09-13 02:21 UTC (permalink / raw)
  To: Jeremy Buchmann <jeremy@wellsgaming.com>; +Cc: pgsql-admin

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.

John




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Multiple users, same DB
  2000-09-12 22:50 Multiple users, same DB Jeremy Buchmann <jeremy@wellsgaming.com>
  2000-09-13 02:21 ` Re: Multiple users, same DB John McKown <joarmc@swbell.net>
@ 2000-09-13 08:03   ` Anthony E . Greene <agreene@pobox.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Anthony E . Greene @ 2000-09-13 08:03 UTC (permalink / raw)
  To: pgsql-admin

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/;



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-09-13 08:03 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-09-12 22:50 Multiple users, same DB Jeremy Buchmann <jeremy@wellsgaming.com>
2000-09-13 02:21 ` John McKown <joarmc@swbell.net>
2000-09-13 08:03   ` Anthony E . Greene <agreene@pobox.com>

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