How to reset Foreman WebUI password from CLI

foreman_www.oel7.com foreman_www.oel7.com

In case we have lost our foreman GUI password, how to retrieve it from the command line?

Hence foreman using ruby we can run foreman-rake from CLI

# foreman-rake permissions:reset

That’s it.