From: Jerry Sievers <gsievers19@comcast.net>
To: sharon <sharon@erabyte.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: Admin user issue: unable to login after changing password
Date: Mon, 03 Feb 2014 13:21:34 -0600
Message-ID: <86ob2o3su9.fsf@jerry.enova.com> (raw)
In-Reply-To: <52EFA700.6020609@erabyte.it>
References: <52EFA700.6020609@erabyte.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gsievers19@comcast.net, sharon@erabyte.it
Subject: Re: Admin user issue: unable to login after changing password
In-Reply-To: <86ob2o3su9.fsf@jerry.enova.com>
* 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