Re: Why can't I change a password <SOLVED>

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Steve Litt <slitt(at)troubleshooters(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why can't I change a password <SOLVED>
Date: 2011-01-16 21:02:12
Message-ID: 4D335CD4.9030402@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 16/01/2011 20:56, Steve Litt wrote:
> Thanks Dmitriy,
>
> It turns out the solution I used was to su to postgres in Linux, and then run
> the command psql without arguments, at which time I could have my way with any
> object.
>
> More in my responses to you...
>
> On Sunday 16 January 2011 06:21:28 Dmitriy Igrishin wrote:
>> Hey Steve,
>>
>> 2011/1/16 Steve Litt<slitt(at)troubleshooters(dot)com>
>>
>>> Hi all,
>>>
>>> I've somehow messed up something.
>>>
>>> psql super
>>
>> psql's synopsis is
>> psql [option...] [dbname [username]]
>> Thus, the call "psql super" connects psql to a database
>> "super" but since username unspecified it is connected
>> with current Unix user (which is returned by whois(1)).
>>
>> So, you should call psql like that
>> psql super super
> slitt(at)mydesk:~$ psql super super
> psql: FATAL: Ident authentication failed for user "super"
> slitt(at)mydesk:~$ psql postgres postgres
> psql: FATAL: Ident authentication failed for user "postgres"
> slitt(at)mydesk:~$

If you have configured PG to listen on a TCP/IP port (5432 by default),
you can also do:

psql -U postgres -h localhost super

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Litt 2011-01-16 21:39:58 Re: Why can't I change a password <SOLVED>
Previous Message Steve Litt 2011-01-16 20:56:33 Re: Why can't I change a password <SOLVED>