Lost admin on self hosted server // How to generate a new privilege key

How to get back your Admin permissions on hosted servers

If you own a TeamSpeak Community, refer to this post for additional guidance:

If you are hosting a Server from an ATHP, you must contact your hosting provider. Politely request them to generate a new privilege key for you.


How to get back your Admin permissions on self hosted servers

The easiest solution is to get another Admin online that can grant you the permissions. If that is not possible, you can use your Server Query to get back access.

When using a TS-6 Server, you’ll need to use an SSH connection to connect to the server. The Query is also disabled by default so you might need to add parameters or set environment variables when starting the server → Frequently Used Parameters & Environment Variables

If you don’t have your serveradmin password, please have a look here:

Don't have your Server Admin Query password? Look here!

If you are unfamiliar with ServerQuery, refer to this guide:

How to use the Server Query (Telnet)

Steps to Connect via Telnet (Putty or Linux Command Line)

  1. Download Putty: http://www.putty.org/

  2. Open Putty and enter your TeamSpeak server address in the Host Name field.
    2.1. If you are not using the default Server Admin group, you’ll need to connect to your server and get the Server Group ID.
    2.2. Go to PermissionsServer Groups and find the Server Admin group ID

  3. Use a telnet client (e.g., Putty) to connect to the ServerQuery Interface
    Default Telnet Port: 10011
    Default SSH Port: 10023

  4. Enter the following commands:

    login serveradmin YOUR_PASSWORD
    use port=YOUR_VOICE_PORT
    tokenadd tokentype=0 tokenid1=YOUR_SERVERGROUP_ID tokenid2=0
    

    Default Voice Port / YOUR_VOICE_PORT : 9987
    Default Server Admin ID / YOUR_SERVERGROUP_ID: 6

  5. The output will display your privilege key, e.g.,

    token=UadpbuJLf6FL6bWVuJ0W9+yml5btScRFJSs9NSuN
    
  6. Use the token to regain admin permissions:
    TeamSpeak 6: Right-click the ServerUse Privilege Key, then enter the token.
    TeamSpeak 3: Go to PermissionsUse Privilege Key, then enter the token.

Your admin permissions should now be restored.

1 Like

Privilege keys are one time use and are invalid once used.
The reason you’re not having permissions is very likely because you’re using a different identity. Unless you also lost all channels on the server in which case you didn’t update the server correctly, but created a new installation.

5 Likes

I set up a TS6 server on a Ubuntu system and then added the privilege key for my account. Last night I installed TS on a second PC of mine and logged in/connected to the server. Now my privilege key/admin access is gone on both computers. I have tried swapping between the two identities in my TS client and nothing works. I cannot get the server to stop automatically restarting on the Ubuntu machine, which is preventing me from doing workarounds to make a new token. How can I get admin privileges back for my server?