Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAP5f-0005Ca-2W for pgsql-admin@arkaria.postgresql.org; Mon, 03 Feb 2014 19:21:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WAP5e-0001zA-B3 for pgsql-admin@arkaria.postgresql.org; Mon, 03 Feb 2014 19:21:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAP5d-0001z4-Hm for pgsql-admin@postgresql.org; Mon, 03 Feb 2014 19:21:53 +0000 Received: from qmta06.emeryville.ca.mail.comcast.net ([2001:558:fe2d:43:76:96:30:56]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAP5a-000547-EG for pgsql-admin@postgresql.org; Mon, 03 Feb 2014 19:21:53 +0000 Received: from omta21.emeryville.ca.mail.comcast.net ([76.96.30.88]) by qmta06.emeryville.ca.mail.comcast.net with comcast id Muif1n0031u4NiLA6vMmi5; Mon, 03 Feb 2014 19:21:46 +0000 Received: from jerry.enova.com ([38.98.177.132]) by omta21.emeryville.ca.mail.comcast.net with comcast id MvMa1n00W2rmZlA8hvMdqT; Mon, 03 Feb 2014 19:21:44 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id 6161F7401E6; Mon, 3 Feb 2014 13:21:34 -0600 (CST) From: Jerry Sievers To: sharon Cc: pgsql-admin@postgresql.org Subject: Re: Admin user issue: unable to login after changing password References: <52EFA700.6020609@erabyte.it> Date: Mon, 03 Feb 2014 13:21:34 -0600 In-Reply-To: <52EFA700.6020609@erabyte.it> (sharon@erabyte.it's message of "Mon, 03 Feb 2014 15:26:08 +0100") Message-ID: <86ob2o3su9.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1391455306; bh=WlvmSpBC70Hp1gkk8813l0klyQkfpnceHu/B1n0d6Ic=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=QJH+3T/+NUNeWvC7l46/z68ciSbJoWg65MpEfX+UB0IsnYJBYoxWxptKY4LSjRtmR WP+fuyit4ypjuj7PMd+viNcQDJlyE+NinRDgnihwrAd9tSG1RZ9WWzXaJBxmJsRma6 KA6Yr4rnN8IHS39jiQfbC4wBav0bEe4lsRhMqtyLzsmaHqrTVDlaMsRZc9HdWA4frW ewoqh7NKF7We9dCWGpyLEIP8K/FfLC0k5zUe58vtQbLZanVheLrlnOpYPt3dzwT4CB PV3nc2K+E85gBwL8X684nIXzwofi1lVeZD6XHoiRcYMZNkEbt2lbNjUGoNuAjY3Dq9 hNcOw9VA1ZCmA== X-Pg-Spam-Score: -1.3 (-) 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 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