How do I recover or reset the admin password?
Tricky, I run 2 full installations of osTicket, development and production, I also have multiple admins, the reason being is I locked myself out at one point (thanks to forgetting to note down the password given by the password generator), I was able to go into the other distribution and copy the MD5 hash to the user with the forgotten password.
Technically speaking, the only way to recover it is if mcrypt is not enabled on the server as the passwords are protected with an MD5 hash, no mcrypt no MD5 hash. If no mcrypt then you will be able to read the data directly in mySQL.
You can try generating a new password with another application that uses MD5 hash and pasting the new string into mySQL... it is a possibility but make sure you copy your original MD5 hash before doing this in-case there is a problem.
Is the system locked, how can I reset this?
My udnerstanding is the system will release the locks periodically, the alternative is to go into mySQL, under the staff table find the user that is locked and change it from memory to 0.