Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

0 votes
38 views
38 views

I've inherited a Foreman server set up by someone else who didn't deem it necessary to document the admin password for the web interface somewhere. Can I reset the password somehow?

in General by (245) 7

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
By submitting this post you agree to our Terms & Conditions.
To avoid this verification in future, please log in or register.

1 Answer

0 votes
 
Best answer

The admin account is stored in the table users of the Foreman database, so you could update the password hash there. However, assuming you have root access to the server itself, there is a simpler way. Run the following command with root privileges to reset the admin account:

foreman-rake permissions:reset

The new credentials are displayed in the console. Make sure to note them down.

by (245) 7
...