Changing the location of the password database
About this task
Change the default location of the password database passwd.db used for OpsCenter authentication if you prefer another location. The password database is created when authentication is enabled.
Change the location of the password database in the opscenterd.conf
file.
The default location of passwd.db depends on the type of installation:
-
Package installations: /etc/opscenter/passwd.db
-
Tarball installations: install_location/passwd.db
Procedure
-
Locate the
opscenterd.conf
file. The location of this file depends on the type of installation:-
Package installations: /etc/opscenter/opscenterd.conf
-
Tarball installations: install_location/conf/opscenterd.conf
-
-
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
-
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 creates a new password database in the specified location when it is started. Existing users and roles are lost.
-
Your organization is responsible for backing up the passwd_db database. You must also configure failover to mirror the passwd_db if your organization has failover enabled.
-