How to reset the pulp password in Red Hat Satellite 6?
Environment
- Red Hat Satellite 6.4 or newer
- Pulp2
- Red Hat Satellite 6.9 or below
Issue
-
How to reset the password of the pulp server?
-
Pulp admin failing due to authentication issue:
# pulp-admin -u admin -p <password> tasks list +----------------------------------------------------------------------+ Tasks +----------------------------------------------------------------------+ Invalid Username or Password
Resolution
-
To reset the pulp admin password run the below commands in the python interpreter.
# python >>> from pulp.server.db.connection import initialize; initialize() >>> from pulp.server.controllers.user import update_user >>> update_user('admin', {'password':'yournewpassword'}) -
After changing the password, modify to the same password value:
default_passwordin/etc/pulp/server.confpulp_admin_passwordin/etc/foreman-installer/scenarios.d/satellite-answers.yaml(only in 6.4 or 6.5)
For more KB articles/solutions related to Red Hat Satellite 6.x Pulp 2.0 Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Pulp 2.0-related Issues
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.