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

[Bug] Can not granted user to role: operator #45572

Open
3 tasks done
xlostpath opened this issue Dec 18, 2024 · 2 comments
Open
3 tasks done

[Bug] Can not granted user to role: operator #45572

xlostpath opened this issue Dec 18, 2024 · 2 comments

Comments

@xlostpath
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.13

What's Wrong?

CREATE USER "root"@'172.16.10.%' IDENTIFIED BY '' DEFAULT ROLE 'operator':
SQL ERROR [5064] [42000]: errCode = 2, detailMessage = Can not create root user

CREATE USER "admin"@'172.16.10.%' IDENTIFIED BY '' DEFAULT ROLE 'operator':
SQL ERROR [1105] [HY000]: errCode = 2, detailMessage = Can not granted user to role: operator

DROP USER 'root'@'%':
SQL ERROR [5064] [42000]: errCode = 2, detailMessage = Can not drop

What You Expected?

I hope to add a new user ‘root’@‘172.16.10.%’ to replace the original ‘root’@‘%’, so that only the specified IP can connect to the root user, instead of the default ‘root’@‘%’ .

How to Reproduce?

No response

Anything Else?

Unable to query which users have been created in Doris at the moment.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@ixzc
Copy link
Contributor

ixzc commented Jan 5, 2025

you can't drop root user, it's not allowed. by the way, why do you wnat ot use ‘root’@‘172.16.10.%’ ? what's you specific ip of your FE node?

@xlostpath
Copy link
Author

By default, the root user of Doris can be connected by all IPs. My intention is to make it possible for the root user to be accessed only via the IPs in the network segment of 172.16.10.%. I don't want to delete the root user. I'm just trying to create the user "root"@'172.16.10.%', but Doris doesn't allow it, so I've decided to try deleting it.

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

No branches or pull requests

2 participants