pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gémes Géza <geza@kzsdabas.sulinet.hu>
To: Pedro Almeida <niker@netvisao.pt>
Cc: pgsql-admin@postgresql.org
Subject: Re: pgsql initial superuser
Date: Mon, 16 Feb 2004 20:48:23 +0100
Message-ID: <40311E87.4090701@kzsdabas.sulinet.hu> (raw)
In-Reply-To: <40310F4B.7010800@netvisao.pt>
References: <40310F4B.7010800@netvisao.pt>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pedro Almeida írta:
| kaolin fire wrote:
|
|> try user 'pgsql' :) that's the default initially created superuser, no
|> password (it would be good to give it one).
|>
|> -kaolin fire
|> -http://erif.org/code/fallingup/ for a 'spin' on tetris
|>
|>
| That was a quick response :-)
|
| using a clean pg_hba.conf file (no user lines added), this is what
| happened:
|
| *******
| ~# createuser -Upgsql
| Enter name of user to add: blabla
| Shall the new user be allowed to create databases? (y/n) n
| Shall the new user be allowed to create more new users? (y/n) n
| psql: FATAL:  IDENT authentication failed for user "pgsql"
|
| createuser: creation of user "blabla" failed
| *******
|
| What am I doing wrong ?
|
| ---------------------------(end of broadcast)---------------------------
| TIP 9: the planner will ignore your desire to choose an index scan if your
|      joining column's datatypes do not match

Add a line:
local  all     all     ident   sameuser
to your pg_hba.conf
restart postgresql
find out under what userid is your postgresql running typicaly it would
be postgres, I'll supose that it is postgres:
su postgres
and do whatever you like with your database cluster.
Because of this I would suggest as a first step to do:
psql template1
SQL commands follow:
ALTER USER postgres password='SomeReallyBigSecretHere' ;

Hope it helps.

Cheers,

Geza
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAMR6G/PxuIn+i1pIRAoaAAKCBALjM0r1nQ3K8anMwrDh/BGscOgCggs18
V+YlMMBEGys7jd7LzfV5M0Y=
=udMf
-----END PGP SIGNATURE-----




view thread (6+ messages)  latest in thread

Message-ID: <40311E87.4090701@kzsdabas.sulinet.hu>
Permalink:  ../40311E87.4090701@kzsdabas.sulinet.hu/
Also on:    postgresql.org/message-id/40311E87.4090701@kzsdabas.sulinet.hu

 · 

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: geza@kzsdabas.sulinet.hu, niker@netvisao.pt
  Subject: Re: pgsql initial superuser
  In-Reply-To: <40311E87.4090701@kzsdabas.sulinet.hu>
  References: <40310F4B.7010800@netvisao.pt> <40311E87.4090701@kzsdabas.sulinet.hu>

* 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