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
- Log on to the Zenoss server and change to the Zenoss user:
# su - zenoss - Stop Zenoss:
$ zenoss stop - Connect to the Zends database:
$ zends -u root [append “ -p” if the root password is not blank] - 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; - Exit the Zends client:
exit - Update the values for the following options in $ZENHOME/etc/global.conf to reflect the new password:
zodb-admin-password
zep-admin-password - Start Zenoss:
$ zenoss start
Changing the Zends “zenoss” Password
- Log on to the Zenoss server and change to the Zenoss user:
# su - zenoss - Stop Zenoss:
$ zenoss stop - Connect to the Zends database::
$ zends -u root [append “ -p” if the root password is not blank] - 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; - Exit the Zends client:
exit - Update the values for the following options in $ZENHOME/etc/global.conf to reflect the new password:
zodb-password
zep-password - Update the value for the following option in the $ZENHOME/etc/zodb_db_main.conf file:
passwd - Update the value for the following option in the $ZENHOME/etc/zodb_db_session.conf file:
passwd - Start Zenoss
$ zenoss start
Comments