6.2. Commands to Change Passwords

This section describes the commands that you can use to update the passwords for the services.
  • Dashboard Login
    # keystone user-password-update admin
  • MySQL
    # /usr/bin/mysqladmin -u root -p OLDPASS NEWPASS
    Replace the OLDPASS with the existing password and the NEWPASS with the new password.

    Note

    This command can be use to change the 'root' password and not that of any of the other MySQL users.
  • Nagios
    # htpasswd /etc/nagios/passwd nagiosadmin
    Replace the nagiosadmin by the non-admin user name to change the password for a user.
The passwords in the Table 6.1, “PackStack and Passwords” table for Compute, OpenStack Networking, Image, Block Storage and Object Storage are the keystone authentication passwords.
To change these passwords, use the following command.
# keystone user-password-update USERNAME 
Replace USERNAME with the name of the service you want to change the password to. You will have to enter the new password when the machine prompts you to do so.

Important

Make sure to update the config files for the services after changing the passwords.