Re: bloquear usuario importar/exportar

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Rubén Luna <rpgsql(at)gmail(dot)com>
Cc: pgsql-es postgresql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: bloquear usuario importar/exportar
Date: 2005-05-03 15:20:25
Message-ID: c2d9e70e050503082054bb20c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 5/3/05, Rubén Luna <rpgsql(at)gmail(dot)com> wrote:
> Gracias, pero significa esto (grant select) que no podrá ni siquiera
> consultar una tabla?, o lo correcto es que le de permisos sobre las
> tablas que podra acceder.
> > >
> > GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER
> }
> > [,...] | ALL [ PRIVILEGES ] }
> > ON [ TABLE ] tablename [, ...]
> > TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH GRANT OPTION
> ]
> >

Perdon para quitarle los permisos es revoke con grant le das permisos.
estaba dormido cuando escribi eso.

REVOKE [ GRANT OPTION FOR ]
{ { SELECT | INSERT | UPDATE | DELETE | RULE | REFERENCES | TRIGGER }
[,...] | ALL [ PRIVILEGES ] }
ON [ TABLE ] tablename [, ...]
FROM { username | GROUP groupname | PUBLIC } [, ...]
[ CASCADE | RESTRICT ]

revoke select on table nombre_tabla_que_no_quieres_que_consulte
from nombre_usuario

Solo le quitas el permiso en esa tabla.

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2005-05-03 15:40:08 Re: ayuda
Previous Message Martín Marqués 2005-05-03 15:19:17 Re: Tabla temporal