Subject | Re: [ib-support] Re: Users & Roles |
---|---|
Author | Ivan Prenosil |
Post date | 2002-06-07T20:01:27Z |
> I'm still not having luck in getting the permissions toI just run simple script, and this is copy-pasted result.
> work. I granted the role using the syntax you suggested,
> and I specified the role while logging in. Still no access.
It works for me.
CREATE DATABASE 'C:\TEST.GDB' USER 'SYSDBA' PASSWORD 'masterkey';
CREATE TABLE Customer (cust VARCHAR(20));
INSERT INTO Customer VALUES ('abc');
Create Role BasicRole;
Grant Select on Customer to BasicRole;
Grant BasicRole to John;
CONNECT 'C:\TEST.GDB' USER 'John' PASSWORD 'john' ROLE 'BasicRole';
SELECT * FROM Customer;
CUST
====================
abc
CONNECT 'C:\TEST.GDB' USER 'John' PASSWORD 'john';
SELECT * FROM Customer;
Statement failed, SQLCODE = -551
no permission for read/select access to TABLE CUSTOMER
Ivan
http://www.volny.cz/iprenosil/interbase