How to reset the Verity K2 password.

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值