How to change the password for Ranger users

You can change the password for multiple Ranger users without using the Ranger Admin Web UI.

To change the passwords of Ranger users defined in the Ranger Admin modules without using the Ranger Admin Web UI, use the following python script.

Change current working directory to the Ranger Admin installation directory.
  1. In the Ranger Admin working directory, run the following command:
    python changepasswordutil.py <user_name> <old_password> <new_password>
    python changepasswordutil.py testuser1 testuser1 user12345
  2. To change the password of the admin user, run the following command:
    python db_setup.py -changepassword <username> <old password> <new password>
    python db_setup.py -changepassword admin admin admin123