If you lose your admin password from:
you can run this command as root to reset the password:
$ sudo foreman-rake permissions:reset
Reset to user: admin, password: XXXXXXXXXX
Admin password is stored in Postgres table users inside foreman database:
id | login | admin | password_hash | password_salt
---+-------------------+-------+---------------+---------------
1 | foreman_admin | t | |
2 | foreman_api_admin | t | |
3 | admin | t | XX | XX
RECENT COMMENTS