// Commented out mbk Feb 2019 // //
Search this site:
Enterprise Search Blog
« NIE Newsletter

How do I reset the Verity K2 password? - Ask Dr. Search

Last Updated Mar 2009

By: Mark Bennett, Volume 2 - Number 7 - July/August 2005

Ask Dr. Search

This month's question comes from a customer who is using Verity K2 in an enterprise search application.

Question:

We removed the Windows domain user name that had been managing the Verity K2 console and now we cannot access the console. How can I reset the password without reinstalling K2?

Dr. Search answers:

Actually, Dr. Search has had the same thing happen to him at a customer site, and luckily it's not too difficult. We won't even mention the logic of creating multiple user names in the K2 console.

First, you need to stop K2. If you're on Windows, that means stopping all of the K2 services. On Unix, you'll need to scan the output of the ps command to find all of the K2 processes.

Once K2 has stopped, you need to remove the cstore.psm file from the ticket server directory. For example, if your ticket server is named test_ticket1 you would find the cstore.psm file in:

verity/data/services/test_ticket1/cstore.psm

Note some people might advise you copy or rename the file just in case you decide you need it back.

Re-start K2, and log in using the command line tool rctk to connect to the ticket server, by default on port 9910: Once it has started, use the ainit command; log in using a null user name and password; and issue the g command to enter a new administrative user name and password. The human input is in bold.

D:\rctk -server myserver.domain.com -port 9910
rctk>ainit
User: newuser
Password: newpass
Domain (optional): [Enter]
Login as Admin (y/n): y
rctk> quit

Note that the username and password need to exist and be valid in the domain or in the LDAP server you are using.

You should find a new cstore.psm file in the ticket server directory; and you should now be able to log into the K2 console using the new username and password. Just to be sure, you might want to start rctk once again and use the g command to get the list of administrative data:

D:\rctk -server myserver.domain.com -port 9910
rctk> login
User: newuser
Password: newpass
Domain (optional):[Enter]
Login as Admin (y/n): y
rctk> g
Admin Id : Administrator
Admin Data : Administrator
Admin AccessLevel : 1
rckt> quit

That's about it! You have a new user name and password, and you're ready to go!

Dr. Search will be back next month. Let him answer your questions for you.