The Trekwar Wiki runs on JSPWiki 2.8.1 (which is pretty awesome BTW).
I just reinstalled my OS and had lost the password, and the Wiki is not set up to use email, so I could not reset it by web.
So I had to find a way to do it by console, and a google search did not provide a complete solution, so here it is:
- Log into the server where the Wiki is hosted
- generate your new password (the password in this example is “password” and it’s hash is the green text below, you can use this if you want)
echo -n password | sha1sum - The command above gives you a “encrypted” password: 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8
- The user database in JSPWiki is a xml file that resides in the WEB-APP directory and is called userdatabase.xml
- This file has a simple format, each user has a <user> tag. So just find the user you want to reset the password for
- The user tag has a password filed that looks something like this:
password="{SSHA}XXXXXXXXXXXXXXXXXXXXXXXXX"
Change this to: (remember to use your own password hash if you made one, or use the green one above):
password="{SHA}YYYYYYYYYYYYYYYYYYYYYYYYYY" - NOTE: changing from SSHA to SHA
- Log in with your new password (or “password” if you used the green hash above)
- Change your password!





