Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can grant usage privilege by himself [CORE5747] #6010

Closed
firebird-automations opened this issue Feb 12, 2018 · 5 comments
Closed

User can grant usage privilege by himself [CORE5747] #6010

firebird-automations opened this issue Feb 12, 2018 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @romansimakov

roman:bin$ ./isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database 'c';
SQL> create generator g;
SQL> create user u password 'p';
SQL> connect 'c' user 'u' password 'p';
Commit current transaction (y/n)?y
Committing.
Database: 'c', User: U
SQL> select gen_id(g, 1) from rdb$database;
Statement failed, SQLSTATE = 28000
no permission for USAGE access to GENERATOR G
SQL> grant usage on generator g to u;
SQL> select gen_id(g, 1) from rdb$database;
Statement failed, SQLSTATE = 28000
no permission for USAGE access to GENERATOR G
SQL> connect 'c' user 'u' password 'p';
Commit current transaction (y/n)?y
Committing.
Database: 'c', User: U
SQL> select gen_id(g, 1) from rdb$database;

           GEN\_ID 

=====================
1

SQL>

Commits: b1ad3c8 578a83a

@firebird-automations
Copy link
Collaborator Author

Modified by: @romansimakov

assignee: Roman Simakov [ roman-simakov ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @romansimakov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 1 [ 10750 ]

Fix Version: 3.0.4 [ 10863 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

security: Developers [ 10012 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants