From: Michelle Murrain <tech@murrain.net>
To: Sam Carleton <postgres@linux-info.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: working with users
Date: 15 Oct 2003 00:21:55 -0400
Message-ID: <1066191715.2370.155.camel@grizzly.ursa-minor.com> (raw)
In-Reply-To: <20031015011716.GA8177@miltonstreet.com>
References: <20031015011716.GA8177@miltonstreet.com>
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
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: tech@murrain.net, postgres@linux-info.net
Subject: Re: working with users
In-Reply-To: <1066191715.2370.155.camel@grizzly.ursa-minor.com>
References: <20031015011716.GA8177@miltonstreet.com> <1066191715.2370.155.camel@grizzly.ursa-minor.com>
* 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