pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Yanek Korff <yanek@cigital.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: duplicate templates, wrong users
Date: Thu, 6 Dec 2001 08:08:02 -0800 (PST)
Message-ID: <20011206080640.I25449-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <9ulvof$6db$1@news.tht.net>


On Wed, 5 Dec 2001, Yanek Korff wrote:

> here's pg_user:
>   usename   | usesysid | usecreatedb | usetrace | usesuper | usecatupd |
> passwd  | valuntil
> ------------+----------+-------------+----------+----------+-----------+----
> ------+----------
>  pgsql      |       72 | t           | t        | t        | t         |
> ******** |
>  os_user    |       71 | t           | f        | t        | t         |
> ******** |
>  user3      |       75 | f           | f        | f        | f         |
> ******** |
>  user1      |       72 | f           | f        | f        | f         |
> ******** |
>  user2      |       73 | f           | f        | f        | f         |
> ******** |
>
> where user1 should correspond to db1 etc.
>
> When I list my databases, it looks like this:
>        List of databases
>      Database     |   Owner
> ------------------+------------
>  db2              | user2
>  db1              | user1
>  db1              | pgsql
>  template0        | pgsql
>  template0        | user1
>  template1        | user1
>  template1        | pgsql
>  db3              | user3
>
>


> What's with the duplicate databases?  Why does user1 own TEMPLATES?  Clearly
> I have screwed something up.  What's the proper way to fix it?  As I see it,
> I should be able to create a user, create a database with that user...
> change that user to not be able to create databases, and then lock down the
> databases so other users cannot get in.  This is possible, yes?  I cannot
> find good documentation on this anywhere.  Any help would be GREATLY
> appreciated.

You have two users with the same usesysid and it happens to be pgsql and
user1 that conflict.




view thread (6+ messages)  latest in thread

Message-ID: <20011206080640.I25449-100000@megazone23.bigpanda.com>
Permalink:  ../20011206080640.I25449-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011206080640.I25449-100000@megazone23.bigpanda.com

 · 

reply

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: sszabo@megazone23.bigpanda.com, yanek@cigital.com, pgsql-general@postgresql.org
  Subject: Re: duplicate templates, wrong users
  In-Reply-To: <20011206080640.I25449-100000@megazone23.bigpanda.com>
  References: <9ulvof$6db$1@news.tht.net> <20011206080640.I25449-100000@megazone23.bigpanda.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