Subject | Having problem to grant permission to the existing user through role |
---|---|
Author | elwin_ho |
Post date | 2008-02-20T19:56:38Z |
Hi,
I am using Firebird 1.5, and having problem to grant permission to
the existing user through role.
Steps:
0. Create a user "test"
Files\\Firebird\security.fdb"
GSEC> ADD test -pw test -fname test -mname test -lname test
1. Create a role
CREATE TABLE "EEE9"
(
"ID" varchar(10) NOT NULL,
PRIMARY KEY ("ID")
);
4. Grant the table to ROLE1
access to TABLE EEE9
It works if I grant the permission to user "test" or "public"
directly. But not through the role. Did I miss any?
Thanks in advance
Elwin
I am using Firebird 1.5, and having problem to grant permission to
the existing user through role.
Steps:
0. Create a user "test"
>C:\Program Files \Firebird\bin>gsec.exe -user sysdba -passwordmasterkey -database 127. 0.0.1:"c:\Program
Files\\Firebird\security.fdb"
GSEC> ADD test -pw test -fname test -mname test -lname test
1. Create a role
>create role ROLE1;2. Grant the ROLE1 to test
>grant ROLE1 to test3. Create a table (by sysdba):
CREATE TABLE "EEE9"
(
"ID" varchar(10) NOT NULL,
PRIMARY KEY ("ID")
);
4. Grant the table to ROLE1
> grant all on EEE9 to ROLE15. Access the table with user "test".
> select * from EEE9and I get:
>[Error] Script lines: 1-1 --------------------------GDS Exception. 335544352. no permission for read/select
access to TABLE EEE9
It works if I grant the permission to user "test" or "public"
directly. But not through the role. Did I miss any?
Thanks in advance
Elwin