pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Toomas <toomas.kristin@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Can db user change own password?
Date: Wed, 20 Oct 2021 18:07:49 +0300
Message-ID: <EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.com> (raw)
In-Reply-To: <62f56a19-0504-4d7b-5f73-b10e8206642a@aklaver.com>
References: <B340250F-A0E3-43BF-A1FB-2AE36003F68D@gmail.com>
	<62f56a19-0504-4d7b-5f73-b10e8206642a@aklaver.com>

Hi Adrian,

Thank you for your help. The issue was that when user logged into database his session_user user was set as owner of database automatically. User had success to change password when session_user = current_user was set before.

BR,
Toomas

> On 20. Oct 2021, at 17:45, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
> On 10/20/21 07:38, Toomas wrote:
>> Hi,
>> Is there any possibilities that db user can change own password?
>> There is no difference does the user uses ALTER command or \password meta-command, result is the same - response is “permission denied”.
>> dbname=> \password
>> Enter new password:
>> Enter it again:
>> ERROR:  permission denied
> 
> Works for me, you will need to supply more information:
> 
> 1) Postgres version?
> 
> 2) User you are connecting as?
> 
> 3) Output of \du <user_name>
> 
>> BR,
>> Toomas
> 
> 
> -- 
> Adrian Klaver
> adrian.klaver@aklaver.com






view thread (14+ messages)  latest in thread

Message-ID: <EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.com>
Permalink:  ../EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.com/
Also on:    postgresql.org/message-id/EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: toomas.kristin@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Can db user change own password?
  In-Reply-To: <EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.com>
  References: <B340250F-A0E3-43BF-A1FB-2AE36003F68D@gmail.com> <62f56a19-0504-4d7b-5f73-b10e8206642a@aklaver.com> <EA29ACFC-830F-49D0-9DFD-8E1974DD791B@gmail.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