pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Permission ALTER PASSWORD
2+ messages / 2 participants
[nested] [flat]

* Permission ALTER PASSWORD
@ 2007-08-08 21:35 Anderson Alves de Albuquerque  <andersonaa@gmail.com>
  2007-08-15 15:47 ` Re: [GENERAL] Permission ALTER PASSWORD Decibel! <decibel@decibel.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Anderson Alves de Albuquerque @ 2007-08-08 21:35 UTC (permalink / raw)
  To: pgsql-admin; +Cc: pgsql-general@postgresql.org

 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?

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [GENERAL] Permission ALTER PASSWORD
  2007-08-08 21:35 Permission ALTER PASSWORD Anderson Alves de Albuquerque  <andersonaa@gmail.com>
@ 2007-08-15 15:47 ` Decibel! <decibel@decibel.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Decibel! @ 2007-08-15 15:47 UTC (permalink / raw)
  To: Anderson Alves de Albuquerque <andersonaa@gmail.com>; +Cc: pgsql-admin; pgsql-general@postgresql.org

On Wed, Aug 08, 2007 at 06:35:51PM -0300, Anderson Alves de Albuquerque  wrote:
>  After user $USER execute this ALTER, it get change PASSWORD. Could I block
> command ALTER password to user $USER?

No, there's no way to do that. You might want to look at using
ident-based authentication for that user instead.
-- 
Decibel!, aka Jim Nasby                        decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-08-15 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 21:35 Permission ALTER PASSWORD Anderson Alves de Albuquerque  <andersonaa@gmail.com>
2007-08-15 15:47 ` Decibel! <decibel@decibel.org>

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