Skip to main content

Change passwords for default users

Moogsoft Onprem creates users for Linux, RabbitMQ, the Moogsoft Onprem UI and Graze API during the installation process. As a security measure, you must change the default passwords for these users. After you change the passwords you may need to update the Moogsoft Onprem configuration to use the new passwords.

If you run in a distributed environment, you can set unique passwords for all components on each host.

Moogsoft recommends you encrypt passwords for use in Moogsoft Onprem configuration files. See Moog Encryptor for more information. In distributed or high availability environments, encrypt passwords on each machine.

Linux users

The Moogsoft Onprem installation package creates the following Linux users with login privileges:

  • moogsoft

  • moogadmin

  • moogtoolrunner

Execute the passwd command to change the password of these Linux users. For example, to change the password for the moogtoolrunner user:

passwd moogtoolrunner

The Moogsoft Onprem installation package creates the following Linux users without login privileges:

  • OpenSearch

  • Nginx

Update Moogsoft Onprem Configuration

After you change the password for moogtoolrunner, update its password in $MOOGSOFT_HOME/config/servlets.conf. You can use either the toolrunnerpassword or encrypted_toolrunnerpassword property. For example:

#toolrunnerpassword: "MyNewPassword",
encrypted_toolrunnerpassword: "rmW2daCwMyI8JGZygfEJj0MZdbIkUqX3tT/OIVfMGyI=",

Restart Apache Tomcat to apply the configuration change:

service apache-tomcat restart

Note

You do not need to update the Moogsoft Onprem configuration after you change the password for other Linux users with login privileges.

RabbitMQ user

The Moogsoft Onprem installation process creates a RabbitMQ user called moogsoft. Execute the rabbitmqctl change_password command to change the moogsoft user password. For example:

rabbitmqctl change_password moogsoft <new-password>
Update Moogsoft Onprem configuration

After you change the moogsoft user password, update the password in $MOOGSOFT_HOME/config/system.conf. You can use either the password or encrypted_password property. For example:

"username"           : "moogsoft",
#"password"          : "MyNewPassword",
"encrypted_password" : "e5uO0LY3HQJZCltG/caUnVbxVN4hImm4gIOpb4rwpF4=",

If you are running in a distributed environment, update the password configuration on every host.

Graze API and UI users

The installation process creates the following default users for the UI:

  • admin

  • graze

  • super

You can also use the graze user to log into the Graze API.

To change the default passwords for these users, log into the UI and go to Settings > Users.