| From: | Jerry Sievers <gsievers19(at)comcast(dot)net> |
|---|---|
| To: | sharon <sharon(at)erabyte(dot)it> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Admin user issue: unable to login after changing password |
| Date: | 2014-02-03 19:21:34 |
| Message-ID: | 86ob2o3su9.fsf@jerry.enova.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
sharon <sharon(at)erabyte(dot)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(dot)consulting(at)comcast(dot)net
p: 312.241.7800
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jesper | 2014-02-04 13:38:15 | Autovacuum progressing slow (with high activity on the system). |
| Previous Message | Scott Ribe | 2014-02-03 15:21:38 | Re: Cannot change archive_command with a reload |