X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7B2C0D1B524 for ; Wed, 15 Oct 2003 04:23:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 69547-02 for ; Wed, 15 Oct 2003 01:22:43 -0300 (ADT) Received: from grizzly.ursa-minor.com (unknown [66.152.196.55]) by svr1.postgresql.org (Postfix) with ESMTP id C074ED1B4F2 for ; Wed, 15 Oct 2003 01:22:23 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by grizzly.ursa-minor.com (8.12.8/8.12.8) with ESMTP id h9F4Ltg9024131; Wed, 15 Oct 2003 00:22:06 -0400 Subject: Re: working with users From: Michelle Murrain Reply-To: tech@murrain.net To: Sam Carleton Cc: pgsql-admin@postgresql.org In-Reply-To: <20031015011716.GA8177@miltonstreet.com> References: <20031015011716.GA8177@miltonstreet.com> Content-Type: text/plain Organization: XinaSoft Message-Id: <1066191715.2370.155.camel@grizzly.ursa-minor.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 15 Oct 2003 00:21:55 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/149 X-Sequence-Number: 10710 On Tue, 2003-10-14 at 21:17, Sam Carleton wrote: > But how do I see what users exist for the database? Because I was > the user postgres when I created the database, does that mean there > was a postgres user added during creation? If not, what user am I > when I run psql as postgres? If I am postgres, what is the password > to the database and how do I rest it? There is a table called pg_shadow. It has the list of users and passwords and what they can do. To see what you have now, use: SELECT * from pg_shadow; See: http://www.postgresql.org/docs/7.3/static/catalog-pg-shadow.html and: http://www.postgresql.org/docs/7.3/interactive/user-manag.html -- .Michelle --------------------------- Michelle Murrain mmurrain@dbdes.com Database Designs Associates, Inc. Boston 617.889.0929 Amherst 413.253.2874 Cell 413.222.6350 www.dbdes.com AIM:pearlbear0 ICQ:129250575 "Our capacity to make peace with another person and with the world depends very much on our capacity to make peace with ourselves." -- Thich Nhat Hanh