From: Peter Eisentraut <peter_e@gmx.net>
To: R D <mrk279@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: users & groups
Date: Sun, 18 Jun 2000 16:16:36 +0200 (CEST)
Message-ID: <Pine.LNX.4.21.0006172016530.348-100000@localhost.localdomain> (raw)
In-Reply-To: <20000616073826.27860.qmail@web205.mail.yahoo.com>
R D writes:
> 1. If I'm using different password files for each
> database can I grant or revoke privileges to this
> users without creating the same users in pg_user
> table?
No, you always have to use CREATE USER. Btw., I think we're pondering
removing the secondary password file feature sometime; would you care to
explain why you think you need it?
> 2. How can I add a user in more than one GROUP?
ALTER GROUP foo ADD USER bar;
ALTER GROUP foo2 ADD USER bar;
> How can I add an existing user to a new group?
CREATE GROUP foo WITH USER bar1, bar2;
> How can I remove a user from some group?
ALTER GROUP foo DROP USER bar;
RTFM :)
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
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: peter_e@gmx.net, mrk279@yahoo.com
Subject: Re: users & groups
In-Reply-To: <Pine.LNX.4.21.0006172016530.348-100000@localhost.localdomain>
References: <20000616073826.27860.qmail@web205.mail.yahoo.com> <Pine.LNX.4.21.0006172016530.348-100000@localhost.localdomain>
* 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