Changing the location of the password database

Change the default location of the password database used for authentication.

The password database is created when authentication is enabled. The default location of the password database is:
  • Installer-Services or package installations: /etc/opscenter/passwd.db
  • Installer-No Services or tarball installations: install_location/passwd.db

You can change the location of the password database in the opscenterd.conf file.

opscenterd.conf 

The location of the opscenterd.conf file depends on the type of installation:

  • Installer-Services or package installations: /etc/opscenter/opscenterd.conf
  • Installer-No Services or tarball installations: install_location/conf/opscenterd.conf
  • Windows installations: Program Files (x86)\DataStax Community\opscenter\conf\opscenterd.conf

Procedure

  1. Edit the opscenterd.conf file and change the location of the password database.

    Set passwd_db to the new location in the [authentication] section.

    [authentication]
    passwd_db = path to new password database
    Warning: If you have already enabled authentication, copy the existing passwd.db file to the new location. If you do not copy the password database to the new location, OpsCenter will create a new password database in the specified location when it is started. Existing users and roles will be lost.
  2. Restart OpsCenter.