Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAywn-0005EX-5B for pgsql-admin@arkaria.postgresql.org; Wed, 05 Feb 2014 09:39:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WAywm-0000vn-Gg for pgsql-admin@arkaria.postgresql.org; Wed, 05 Feb 2014 09:39:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAywk-0000ve-7S for pgsql-admin@postgresql.org; Wed, 05 Feb 2014 09:39:06 +0000 Received: from smtp-out-2.mgm.tiscali.com ([213.205.37.14] helo=imp.mgm.tiscali.it) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAywX-0005jw-Gu for pgsql-admin@postgresql.org; Wed, 05 Feb 2014 09:39:05 +0000 Received: from [192.168.1.8] ([93.61.33.196]) by smtp-out-2.mgm.tiscali.com with id NZei1n0024DtrJt01ZepDl; Wed, 05 Feb 2014 10:38:51 +0100 x-auth-user: sharon@erabyte.it Message-ID: <52F206A3.3020706@erabyte.it> Date: Wed, 05 Feb 2014 10:38:43 +0100 From: sharon User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Admin user issue: unable to login after changing password References: <86ob2o3su9.fsf@jerry.enova.com> <3f61263db4cb6dc04f6d3f6677dc02a563e31934@webmail.erabyte.it> In-Reply-To: Content-Type: multipart/alternative; boundary="------------010209040603050608020205" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is a multi-part message in MIME format. --------------010209040603050608020205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm sorry, there was a typing error. I fixed pg_hba.conf with " host all postgres localhost trust ". I'm still unable to run pgadmin or psql. Any suggestions would be greatly appreciated. Thank you Sharon Il 05/02/2014 5.00, Payal Singh ha scritto: > looks like you missed the 'type' value in pg_hba? the sequence is > type, database, user, address, method > > See http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html > > Payal Singh, > Junior Database Administrator, > OmniTI Computer Consulting Inc. > Phone: 240.646.0770 x 253 > > > On Tue, Feb 4, 2014 at 6:24 PM, > wrote: > > Hi, > after fixing pg_hba.conf with host "all postgres > localhost trust" i started psql or pgadmin and i > tryed to log in but i still had to type a password. > After fixing the file .conf i restarted the service with no luck. > Any hint? > > Thank you > > Sharon > > > ----- Messaggio Originale ----- > Da: > "Jerry Sievers" > > > A: > "sharon" > > Cc: > > > Inviato: > Mon, 03 Feb 2014 13:21:34 -0600 > Oggetto: > Re: [ADMIN] Admin user issue: unable to login after changing > password > > > > sharon > writes: > > > Hi, > > > > I'm using postgres 9.2 on windows 7. I've changed the > password of > > postgres user with pgadmin but now i'm unable to log in. > > There are two users accounts but only one is the admin. The > problem is > > that the postgres' user expire date is set in 1970, I can > see this > > from the other account. > > Is possible to replace users with a configuration hack? Or > is possible > > to install everything again without loosing database's data? > > Is there a way to solve this issue? > > Fix your pg_hba.conf file to not require a password from the > affected > user, reload it and then login and do a good pw reset and set > valid-until to infinity.. > > > alter role postgres password 'good-pw' valid until 'infinity'; > > HTH > > > > > Thank you > > > > Sharon > > -- > Jerry Sievers > Postgres DBA/Development Consulting > e: postgres.consulting@comcast.net > > p: 312.241.7800 > > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > > > Nessun virus nel messaggio. > Controllato da AVG - www.avg.com > Versione: 2014.0.4259 / Database dei virus: 3684/7061 - Data di > rilascio: 04/02/2014 > --------------010209040603050608020205 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Hi,
I'm sorry, there was a typing error. I fixed pg_hba.conf with " host    all             postgres             localhost               trust ". I'm still unable to run pgadmin or psql.

Any suggestions would be greatly appreciated.

Thank you

Sharon

Il 05/02/2014 5.00, Payal Singh ha scritto:
looks like you missed the 'type' value in pg_hba? the sequence is type, database, user, address, method


Payal Singh,
Junior Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253


On Tue, Feb 4, 2014 at 6:24 PM, <sharon@erabyte.it> wrote:
 Hi,
after fixing pg_hba.conf with host    "all             postgres             localhost               trust" i started psql or pgadmin and i tryed to log in but i still had to type a password.
After fixing the file .conf i restarted the service with no luck.
Any hint?

Thank you

Sharon

----- Messaggio Originale -----
Da:
"Jerry Sievers" <gsievers19@comcast.net>

A:
"sharon" <sharon@erabyte.it>
Cc:
<pgsql-admin@postgresql.org>
Inviato:
Mon, 03 Feb 2014 13:21:34 -0600
Oggetto:
Re: [ADMIN] Admin user issue: unable to login after changing password



sharon <sharon@erabyte.it> writes:

> Hi,
>
> I'm using postgres 9.2 on windows 7. I've changed the password of
> postgres user with pgadmin but now i'm unable to log in.
> There are two users accounts but only one is the admin. The problem is
> that the postgres' user expire date is set in 1970, I can see this
> from the other account.
> Is possible to replace users with a configuration hack? Or is possible
> to install everything again without loosing database's data?
> Is there a way to solve this issue?

Fix your pg_hba.conf file to not require a password from the affected
user, reload it and then login and do a good pw reset and set
valid-until to infinity..


alter role postgres password 'good-pw' valid until 'infinity';

HTH

>
> Thank you
>
> Sharon

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Nessun virus nel messaggio.
Controllato da AVG - www.avg.com
Versione: 2014.0.4259 / Database dei virus: 3684/7061 - Data di rilascio: 04/02/2014


--------------010209040603050608020205--