Permission ALTER PASSWORD

From: "Anderson Alves de Albuquerque " <andersonaa(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Permission ALTER PASSWORD
Date: 2007-08-08 21:35:51
Message-ID: 9b3f75f0708081435p23494a95gd2ac55adf3db02b3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

I have problem with permission, I need to use a user no SUPERUSER.

I use commands:
CREATE ROLE $USER LOGIN;
ALTER user $USER noCREATEDB NOCREATEROLE noCREATEUSER NOINHERIT;
ALTER USER $USER with password 'XX';
REVOKE create on SCHEMA public from public;
revoke all on schema PUBLIC FROM $USER;

With these commands MY user $USER don't have permission to create table and
another thing. But I need that $USER can't have permission to change your
password with:
psql -d $BD -h $HOST -U $USER
# ALTER $USER maluco with password 'YYY';

After user $USER execute this ALTER, it get change PASSWORD. Could I block
command ALTER password to user $USER?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-08-09 01:38:07 Re: Specific questions about wraparound and vacuum
Previous Message Fabricio Peñuelas 2007-08-08 21:28:39 Re: ssl and odbc standar driver

Browse pgsql-general by date

  From Date Subject
Next Message Decibel! 2007-08-08 21:55:01 Re: Having trouble building 64-bit pgsql 7.4.17 on HPUX ia64
Previous Message Rodrigo De León 2007-08-08 21:27:24 Re: Trigger not working as expected, first row gets a null value