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

Re: How to know the password for the user 'postgres'

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Shashank Sahni" <shredder12(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to know the password for the user 'postgres'
Date: 2008-10-28 04:47:54
Message-ID: dcc563d10810272147u63fa1e0w536e8fbfb2cf03ed@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
On Mon, Oct 27, 2008 at 10:38 PM, Shashank Sahni <shredder12(at)gmail(dot)com> wrote:
> Hello people,
>                       I was trying to install dspace on my computer and it
> required postgresql as a prerequisite. Since I am using Ubuntu so i just
> downloaded and installed it using synaptic package manager. For the
> installation of dspace i was supposed to exeucte the following
> command..
>          createuser -U postgres -d -A -P dspace
> but whenever i execute it, it asks for password for the new role and then
> after giving the password..it says..
>
> createuser: could not connect to database postgres: FATAL:  password
> authentication failed for user "postgres"

Odd I would have expected it to say something about identd
authentication failing.

Have you tried:

sudo su - postgres
createuser -d -A -P dpsace

?

In response to

Responses

pgsql-general by date

Next:From: Shashank SahniDate: 2008-10-28 04:55:47
Subject: Re: How to know the password for the user 'postgres'
Previous:From: Shashank SahniDate: 2008-10-28 04:38:33
Subject: How to know the password for the user 'postgres'

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