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

Support grant GRANT_PRIV on database or table level #1473

Closed
morningman opened this issue Jul 14, 2019 · 0 comments
Closed

Support grant GRANT_PRIV on database or table level #1473

morningman opened this issue Jul 14, 2019 · 0 comments
Assignees

Comments

@morningman
Copy link
Contributor

Currently, GRANT_PRIV can only be granted on global level, which means
it can only be granted on *.*. Grant it on db.* or db.tbl are not allowed.

This will not be able to meet the requirement to create a user who has privilege
to grant privileges to other users on specified database or table, such as:

GRANT SELECT_PRIV ON db1.* TO cmy@'%';

So I extend the range of GRANT_PRIV. User can now grant GRANT_PRIV on
database or even table level, such as:

GRANT GRANT_PRIV ON db1.* TO cmy@'%';

And after being granted, the user cmy@'%' can now grant GRANT_PRIV on db1.* to
other users.

More details can be seen in docs/documentation/cn/administrator-guide/privilege.md

@morningman morningman self-assigned this Jul 14, 2019
luwei16 pushed a commit to luwei16/incubator-doris that referenced this issue Apr 7, 2023
… rewrite new tablet (apache#1456) (apache#1473)

* [hot-fix](alter inverted index) Process add or drop inverted index by rewrite new tablet
* [enhance](selectdb-cloud) Add more check for tablet id when process schema change in cloud mode
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

1 participant