Re: permisos

From: Guillermo Villanueva <guillermovil(at)gmail(dot)com>
To: felipe guzman <felipeguzmanv(at)gmail(dot)com>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: permisos
Date: 2012-06-22 14:55:38
Message-ID: CANm+PCBgLxcmdpQ5zxo6ajxq44t9-z3J-dpbGSPbjowX6Ebh7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Muchas gracias Felipe, así los había creado.
Pero hay un detalle, no se si tendrá que ver, cuando hacía los grant no
estaba poniendo la clausula GROUP.
Lo hice y todo empezó a funcionar como esperaba.

GRANT USAGE ON SCHEMA E1 TO *GROUP *lectores;
GRANT USAGE ON SCHEMA E2 TO GROUP lectores;
GRANT USAGE ON SCHEMA E3 TO GROUP lectores;

GRANT SELECT ON ALL TABLES IN SCHEMA E1 TO GROUP lectores;
GRANT SELECT ON ALL TABLES IN SCHEMA E2 TO GROUP lectores;
GRANT SELECT ON ALL TABLES IN SCHEMA E3 TO GROUP lectores;

Guillermo Villanueva
<http://ar.linkedin.com/in/guillermovillanueva>

El 22 de junio de 2012 11:42, felipe guzman <felipeguzmanv(at)gmail(dot)com>escribió:

> y la forma que esta creado el usuario y el rol es la correcta?
> ejemplo:
> *
> *
> *CREATE ROLE lectores*
> * NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;*
> *
> *
> *CREATE ROLE usuario LOGIN*
> * PASSWORD 'passwordusuario'*
> * NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;*
> *
> *
> *GRANT lectores TO usuario;*
>
> El 22 de junio de 2012 10:31, Guillermo Villanueva <guillermovil(at)gmail(dot)com
> > escribió:
>
> gracias por tu respuesta Felipe, es tal cual como lo hice.
>>
>>
>
>
> --
> Felipe Guzman Vargas
> Analista Programador Computacional
> 09- 54047753
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message felipe guzman 2012-06-22 15:02:40 Re: permisos
Previous Message felipe guzman 2012-06-22 14:42:54 Re: permisos