Regain Admin Access To TeamSpeak 32012-02-05
In Teamspeak 2, users were required to log in to their own account on each Teamspeak server. The account would determine what kind of admin rights you might have. In Teamspeak 3, your client application generates a unique ID and each server assigns (or doesn't assign) admin rights to your ID. This means that when you first connect to your new server and give yourself admin privilege, it would be a good idea to save the unique ID so you don't lose your admin access. Well... I was lazy and I didn't bother to save my unique ID the last dozen times I reinstalled my OS, so I lost admin priv on my server.
I did however write down the serveradmin password that was given to me at install time, so I was able to get it back! Seriously, if you didn't write down the admin password, you're reinstalling. Here's what I had to do:
- Get the serveradmin password from install time (seriously, if you do not have it you are reinstalling). This is an account that should have been created when you installed the application and it only shows you the password once.
- Telnet in to your Teamspeak server. By default, your Teamspeak server listens on port 10011 for "serverquery connections". This is a way to give your server very cryptic
yet powerful commands to examine and manage the server. Open up a command prompt and type:
telnet servername 10011This should give you a prompt that looks something like this:
Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of comm
ands and "help " for information on a specific command.
- This prompt is not very user friendly and the return codes are ridiculous, but you gotta use it if you want to get back in. So you type in something like this:
login client_login_name=serveradmin client_login_password=XXXXXXXXthe server should reply with:
error id=0 msg=ok... like I said, the interface isn't terribly user friendly, but as long as you got "error id=0" you should be all good.
- I am assuming that you only have one virtual server setup on this box, so you can select it by typing:
use 1If you have multiple virtual servers you can use "serverlist" to see which one you want to connect to.
- Now that you are connected to your server, you can see any existing tokens with
tokenlistbut you may get back a reply saying:
error id=1281 msg=database\sempty\sresult\ssetwhich simply means that you don't have any tokens right now. You can generate a new key with:
tokenadd tokentype=0 tokenid1=6 tokenid2=0You should get a reply showing:
error id=0 msg=ok
- Now, have your Teamspeak client open and connected to your server. Click on "Permissions" in the menu and select "Use Privilege Key"
- Paste in your token from above and you are admin again
- Now export your identity by going to "Settings" -> "Identities" -> "Export"