Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.org (8.10.1/8.10.1) with ESMTP id e5IEAaM96652 for ; Sun, 18 Jun 2000 10:10:37 -0400 (EDT) Received: from regulus.student.UU.SE ([130.238.5.2]:52806 "EHLO regulus.its.uu.se") by merganser.its.uu.se with ESMTP id ; Sun, 18 Jun 2000 16:10:09 +0200 Received: from peter (helo=localhost) by regulus.its.uu.se with local-esmtp (Exim 3.02 #2) id 133fsK-0000Ab-00; Sun, 18 Jun 2000 16:16:36 +0200 Date: Sun, 18 Jun 2000 16:16:36 +0200 (CEST) From: Peter Eisentraut To: R D cc: pgsql-admin@postgresql.org Subject: Re: users & groups In-Reply-To: <20000616073826.27860.qmail@web205.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Archive-Number: 200006/109 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