Follow

How To Change the Zends Passwords in Zenoss 4.2.3

Prerequisites

  • Access to the current password for the Zends root user. Note that the password can be found on the Zenoss master server in
    $ZENHOME/etc/global.conf as zodb-admin-password.

Applies To

  • Zenoss 4.2.3

Summary

The Zenoss software authenticates to the Zenoss Data Store (Zends) with one of two database users: zenoss or root. The zenoss database user is employed in most cases. The root database user is used for administrative access; for example, when a database schema is updated during an install or upgrade. As a security enhancement, administrators may update the password for either or both users.

Procedure

Changing the Zends “root” Password

  1. Log on to the Zenoss server and change to the Zenoss user:
    # su - zenoss
  2. Stop Zenoss:
    $ zenoss stop
  3. Connect to the Zends database:
    $ zends -u root [append “ -p” if the root password is not blank]
  4. In the Zends client, issue the following commands to change the Zends root password:
    USE mysql;
    UPDATE user SET password=PASSWORD('YourPasswordHere') WHERE user = 'root';
    FLUSH PRIVILEGES;
  5. Exit the Zends client:
    exit
  6. Update the values for the following options in $ZENHOME/etc/global.conf to reflect the new password:
    zodb-admin-password
    zep-admin-password
  7. Start Zenoss:
    $ zenoss start

Changing the Zends “zenoss” Password

  1. Log on to the Zenoss server and change to the Zenoss user:
    # su - zenoss
  2. Stop Zenoss:
    $ zenoss stop
  3. Connect to the Zends database::
    $ zends -u root [append “ -p” if the root password is not blank]
  4. At the Zends client, issue the following commands to change the Zends 'zenoss' password
    USE mysql;
    UPDATE user SET password=PASSWORD('YourPasswordHere') WHERE user = 'zenoss';
    FLUSH PRIVILEGES;
  5. Exit the Zends client:
    exit
  6. Update the values for the following options in $ZENHOME/etc/global.conf to reflect the new password:
    zodb-password
    zep-password
  7. Update the value for the following option in the $ZENHOME/etc/zodb_db_main.conf file:
    passwd
  8. Update the value for the following option in the $ZENHOME/etc/zodb_db_session.conf file:
    passwd
  9. Start Zenoss
    $ zenoss start
Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk