Skip site navigation (1) Skip section navigation (2)

Re: pgsql initial superuser

From: Gémes Géza <geza(at)kzsdabas(dot)sulinet(dot)hu>
To: Pedro Almeida <niker(at)netvisao(dot)pt>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pgsql initial superuser
Date: 2004-02-16 19:48:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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
|> - 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.


Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


In response to

pgsql-admin by date

Next:From: Peter EisentrautDate: 2004-02-16 20:09:32
Subject: Re: pgsql initial superuser
Previous:From: Pedro AlmeidaDate: 2004-02-16 18:43:23
Subject: Re: pgsql initial superuser

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group