pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: pgsql-docs@postgresql.org
To: pgsql-general@postgresql.org
Subject: Re: adding a superuser
Date: Mon, 17 Sep 2001 16:19:06 +0100
Message-ID: <200109171519.f8HFJ6In009155@linda.lfix.co.uk> (raw)
In-Reply-To: <karl@knbenterprises.com> <y84p7.73922$xb.38456999@news1.mntp1.il.home.com>

"Karl Babcock" wrote:
  >I tried that and it says:
  >
  >psql: Peer authentication failed for user 'postgres'
  >createuser: creation of user "root" failed
  >
  >
  >"TeuK" <humpf@yahoo.fr> wrote in message
  >news:9o2dhq$gc$1@front4m.grolier.fr...
  >> I think user root is not known in Postgres user and that's why you want to
  >> add it (;
  >>
  >> try :
  >>
  >> createuser -d -a -U postgres root
  >>
  >> As a rule postgres is running under postgres user account that is a
  >> superuser.
 
It sounds as though you are using a Debian package (peer authentication 
is peculiar to the current Debian release and will disappear again
when 7.2 is released).  The default authentication in Debian is:

  local   all   peer   sameuser

and if that is unchanged, you cannot connect as any user other than your
own Unix login id.  You need to run this command as Unix user 'postgres':

 # su - postgres
 $ createuser -d -a root


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Honour the LORD with thy substance, and with the  
      firstfruits of all thine increase; So shall thy barns 
      be filled with plenty, and thy presses shall burst out
      with new wine."      Proverbs 3:9,10 





view thread (7+ messages)  latest in thread

Message-ID: <200109171519.f8HFJ6In009155@linda.lfix.co.uk>
Permalink:  ../200109171519.f8HFJ6In009155@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/200109171519.f8HFJ6In009155@linda.lfix.co.uk

 · 

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-docs@postgresql.org
  Cc: olly@lfix.co.uk, pgsql-general@postgresql.org
  Subject: Re: adding a superuser
  In-Reply-To: <200109171519.f8HFJ6In009155@linda.lfix.co.uk>
  References: <200109171519.f8HFJ6In009155@linda.lfix.co.uk>

* 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