Pages

Friday, May 20, 2016

Getting Cut & Paste to work in VNC

Sometimes the ability to use cut and paste stops working between your VNC session and the your computer. To get cut and paste to work again just run the following command on the terminal. 

root@earth> vncconfig &

The vncconfig command lunches the vncconfig utility which controls the clipboard function needed for cut & paste to work. Just make sure all the check boxes are checked when the vncconfig utility comes up and cut & paste should start working again.

Tuesday, May 17, 2016

Reset Admin account on Security Center


The other day I got locked out of my admin account for the Security Center 5 from Tenable. In order to get back into the system I needed to reset the admin password. Below I show how to reset the admin password on Security Center 5. For this to work you must have elevated privileges, such as root.

Reset the admin account password
root@earth> sqlite3 /opt/sc/application.db "update userauth set password = 'bbd29bd33eb161d738536b59e37db31e' where username='admin';"
This command sets the admin password to password

Clear login failures.
root@earth> sqlite3 /opt/sc/application.db "update userauth set failedLogins='0' where username='admin';"

Unlock the admin account
root@earth> sqlite3 /opt/sc/application.db "update userauth set locked='0' where username='admin';"

After following these steps you will be able to login to the admin account with the password set to password. If you have any questions or comments please post them below.