Re: Admin user issue: unable to login after changing password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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@xxxxxxxxxxx>

A:
"sharon" <sharon@xxxxxxxxxx>
Cc:
<pgsql-admin@xxxxxxxxxxxxxx>
Inviato:
Mon, 03 Feb 2014 13:21:34 -0600
Oggetto:
Re: Admin user issue: unable to login after changing password


sharon <sharon@xxxxxxxxxx> 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@xxxxxxxxxxx
p: 312.241.7800


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

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux