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
233 views
233 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 Sysadmin
by (100)
1 4 13
edit history

Please log in or register to answer this question.

1 Answer

0 votes
 

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 (100)
1 4 13
edit history
...