Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to reset the login password for Ranger Admin Web UI

2025-03-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to reset the login password of Ranger Admin Web UI". The explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to reset the login password of Ranger Admin Web UI".

The default login name of Ranger Admin Web UI is admin. Normally, we can go to the Setting location of the Ranger page to change the user's password. This article describes how to reset the login of admin users to Ranger Admin Web UI when we forget the login password of admin users and cannot enter Ranger Admin Web UI.

Test environment

1.CDH and CM versions: CDP7.1.4 and CM7.1.4

two。 Cluster enables Kerbeos+OpenLDAP+Ranger

Problem recurrence

When we forget the login password of ranger admin and cannot log on to the Ranger Admin Web UI page

There is a description in Configurationz that the password can only be set once when installing ranger. If you want to set it later, you cannot set it on the following configuration page. You need to log in to the Ranger Web UI page to set it, but now we can no longer access the Web UI page. How to reset the password?

Problem handling

We can change the password of the Ranger Admin user in the ranger database by following these steps

1. Backup ranger Library

Mysqldump-uroot-p ranger > ranger_bak.sql

two。 Log in to the ranger database and run the following sql, which resets the password of admin to admin and checks that the password has been changed successfully

Use ranger

Update x_portal_user set password = 'ceb4f32325eda6142bd65215f4c0f371' where login_id =' admin'

Then we successfully logged in to the Web UI page with the username admin and password admin

3. After entering the range page, we can go to Settings > Users/Groups/Roles > User

Once again, change the password of the admin user to another password (the passwords of Admin, Usersync, Tagsync users must contain a number and a letter).

Click "" to edit

Click "Change password" to change the password we want. All other users change their passwords in the same way.

Summary

1. In the ranger database, all users' passwords are encrypted using asymmetric encryption mode [1], that is, individual encryption, and security issues are involved, so there is no corresponding algorithm here. "ceb4f32325eda6142bd65215f4c0f371" is a character encrypted by admin, which is only a known result.

2. The user's password in Range cannot be deduced from the result:

That is, if we execute the following command to change the password of the admin user to admin@123, we cannot log in to Ranger Web UI.

Update x_portal_user set password = 'admin@123' where login_id =' admin'

Select * from x_portal_user limit 5

Enter password admin@123 cannot log in

Thank you for your reading, the above is the content of "how to reset the login password of Ranger Admin Web UI", after the study of this article, I believe you have a deeper understanding of how to reset the login password of Ranger Admin Web UI, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report