Version
This solution applies to all Carbon Black versions.
Topic
This solution explains how to reset a User's password, unlock a User, and add a new User. Note that the User refers to a Carbon Black UI User, not an operating system User.
Steps
Log on to the Carbon Black server, run the following command(s), then continue by following the prompts. For example cbpasswd --reset <user> will prompt you to enter and confirm the new password for the <user> User.
Change User's password:
/usr/share/cb/cbpasswd --reset=<user> |
Note: Resetting a users password does not automatically unlock the account if it is locked out.
Unlock a User:
/usr/share/cb/cbpasswd --unlock=<user> |
Note: You may get the following line when unlocking a users account. This does not mean it did not unlock it but rather displays a warning.
[root@cbresponse ~]# /usr/share/cb/cbpasswd --unlock=test Two Factor Auth not configured. |
Add a User:
/usr/share/cb/cbpasswd --add=<user> |
If you are unaware of the username that was initially configured, one may run the following command on the system as the root user to query the cb_user table to see the list of usernames:
psql -d cb -p 5002 -c "select username from cb_user;" |