Created 11-20-2015 12:30 PM
I have forgotten my ranger UI admin password. could you please help ?
Created 11-20-2015 04:32 PM
If you forget the admin password, you can reset it by executing db sql:
update x_portal_user set password = 'ceb4f32325eda6142bd65215f4c0f371' where login_id = 'admin';
This will reset the password to 'admin'. Then, they should change the password via UI.
Created 09-16-2018 06:45 PM
The previous answer gives the response on how to reset the password in Ranger for a fixed user/password combination with the value "admin:admin". But if you want to reset or check the password value on Ranger for any user or password combination you have to use the following.
Passwords in Ranger are saved in the password column of the x_portal_user
table as MD5 hashes in the format password{login}
. For instance the hash for the amb_ranger_admin
account with secret123
as password will be as follows:
$ echo -n 'secret123{amb_ranger_admin}' | md5sum md5sum4d9f6af4210833cb982d27c9042d9ac1 -
Of course you may also use this and pgsql/mysql to change the password for any user via command line as requested by another user.
Created 11-20-2015 12:34 PM
@kkulkarni what's the database flavor ?
Created 11-20-2015 02:01 PM
mysql-5.1.73
Created 01-24-2021 01:41 AM
I was just able to confirm that the update command listed is Postgresql database flavor.
Created 11-20-2015 04:19 PM
@kkulkarni You can reset admin user password in mysql database. reset to admin
update x_portal_user set password = 'ceb4f32325eda6142bd65215f4c0f371' where login_id = 'admin' ;
Created 11-21-2015 01:55 PM
Thank you so much @Neeraj Sabharwal
Created 11-20-2015 04:32 PM
If you forget the admin password, you can reset it by executing db sql:
update x_portal_user set password = 'ceb4f32325eda6142bd65215f4c0f371' where login_id = 'admin';
This will reset the password to 'admin'. Then, they should change the password via UI.
Created 11-21-2015 01:55 PM
Thank you so much @sneethiraj 🙂
Created 12-01-2015 12:32 PM
dont forget to change password in ambari as well, otherwise you will have issues restarting services:
Created 05-21-2017 10:57 AM
Hi, is there anyway to change Ranger UI admin password through command line?