You messed up your Admin Group or Permissions?

You have several ways to get this fixed.

  1. Have another Admin group where permissions are fine and a user in that group can fix these in your group

  2. Have access to the ServerQuery / WebQuery and the serveradmin login and do one of the next steps.

For the ServerQuery you can open a telnet connection to port 10011 or SSH connection to port 10022.
For the WebQuery you connect to Port 10080 for HTTP or 10443 for HTTPS.

After you logged in send the command help to get all commands that you can use.
Send command help permreset as an example and you get all needed information about the permreset command.

As said above you only need one of the next steps!

  • Add missing permissions back via command servergroupaddperm

  • With command servergroupcopy you can copy a template group and overwrite the permissions from your admin group.
    You need to find the original Server Admin group (by default sgid=3) with command servergrouplist and then you send the command like in following example.
    servergroupcopy ssgid=3 tsgid=134 name=xyz type=1

  • Reset all (group, client and channel) permissions with command permreset

What happens exactly after command permreset
  • Stops the virtual server
  • Removes all permissions from users and channels
  • Deletes all server and channel groups
  • Recreates all default groups from server instance template
  • Creates a privilege key for the Server Admin group
  • Starts the server

This will not be touched and stays as it was:

  • Users and their avatar (will only lose permissions as mentioned above)
  • Channels and their settings (except channel permissions and icon setting)
  • Server settings
  • Stored files on server / In channel
  1. In case you do not have access to the Query or do not know the login
    Ask the host/owner of the server to do it or start from scratch by deleting the server database.
7 Likes

Hi!
I have to do a permissions reset on my teamspeak server because someone broke admin servergroup (I can’t change anymore subscribe permissions on channels). I’m not hosting the server on my own. I’ve bought it and I don’t have serverquery username/password.
Is there a way to export all servergruops, reset servergroups and then import all servergroups except admin? There are a lot of groups and icons.
I can reset permissions thanks to the webpanel, but i will lose everything,
Thank you

I suggest that you use the servergroupcopy command instead of doing a permreset.

2 Likes

Hello,
I was setting up a TS Server with a friend, and stupidly we deleted the ServerAdmin Group instead of just renaming it to the desired name.

Now we can’t grant the new group all permissions and we now face insufficient permissions for most actions.

My main question today, is if there is anyway to give the group all permissions OR restore the Server Admin Group.
I own the system of which the TS3 Server is running on, and I have root permissions.

Thanks.

SOLVED

What I did:

  1. Logged into Server Query from Putty
  2. used “servergrouplist” command
  3. found Server Admin Group, and noted its sgid (of which is 3)
  4. copied the group using “servergroupcopy”
    example: ‘servergroupcopy ssgid=3 tsgid=0 type=1 name=ServerAdmin sgid=13’
1 Like

Hello ya all. I just started setting up a server but accidentally managed to remove the server group of server admin from myself.
I am now stuck since I can not use a privilege key and have no clue how to go about the server query usage. I have tried a bunch of things and cannot manage to fix it in server query.
Does anyone have an idea how to fix this. I would be so thankful.

Kind regards, JJ

Did you save the serveradmin query password during the installation of the teamspeak server?

It looks like this:

                  I M P O R T A N T

           Server Query Admin Account created
     loginname= "serveradmin", password= "xxxxxxxx"
     apikey= "xxxxxxxxxxx"


                  I M P O R T A N T

  ServerAdmin privilege key created, please use it to gain
  serveradmin rights for your virtualserver. please
  also check the doc/privilegekey_guide.txt for details.

   token=xxxxxxxxxxxx

1 Like

Yes I did

I sadly cannot use a privilege key as I turned that permission off on the default group on Teamspeak. So it will have to be through Serverquery.

That’s good!

  1. Download this program https://yat.qa/
  2. Login into YaTQA via serveradmin

    3.Then go to → Servers → Double click on Your Server → Go to Users → Click on YOU → And then Add
1 Like

Thank you so much man. I got it working! Been searching for hours.
Could you also explain the commands behind it as I was trying to run the commands for quite a while (through Putty on telnet) and I couldn’t manage it.

1 Like

What I wrote to you is the easiest way.
You can read here if you want to restore via SSH.

1 Like