[TS3] ServerAdmin Password Linux

Hello, I have installed Linux Server for like 10-20 times already in last 24 hours but for not a single time, I was able to get my ServerAdmin Password for the Query.

May I know, where do I get that?

I am using CentOS and Ubuntu OS both for the TeamSpeak Servers.

Thanks.

You mean… how do you get the Admin Server Query Password?

1 Like

Yes. Where do I get that from?

You can’t. It gets printed once when you created the server. It is not saved to the logs!
You can change it though! Look at this:

2 Likes

Can you tell me where it is printed because I have all the terminal log with me and I cannot see anything related to this.

The only secured thing it printed was privilege key. Please tell me.

Because my server is pretty new I can redo all the steps right now.

@Gamer92000

As I said it will not be logged. It should be printed right before or after the key.
To change it you just have to restart it with the new password as a parameter. Redoing everything is not worth the effort.

1 Like

@Gamer92000 Here is the screenshot (Sanitized): https://i.imgur.com/gs6jI92.png

You can check yourself it never printed any server admin password.

I can re-do everything on my second VPS just to know where it prints the password because it’s important I learn it properly.

Please let me know.

(I am understanding your solution properly, but I want to learn it that’s why I am asking).

Yes it did. But you can’t see it because the log does not contain this.
Only non sensitive information is printed to logs (in most applications not just TeamSpeak) - this is kinda industry standard.
This you had to run the Startscript with an empty database and the tty (terminal) would show the password.
I am currently not at home but I can record it later and show you all the differences.

1 Like

Okay. Sure thing I will be waiting. Do you have Telegraom Group or Discord Group or something where I could remind you?

Thanks.

No need. I can remember (most of the time)
https://julianimhof.de/media/2020-05-21%2015-33-15.mp4

(My contacts are all listed on my website (just click on my profile))
But I’m daily active on this forum so this should be enough for TeamSpeak related questions.

2 Likes

If you don’t mind, can you send me the best possible way to install teamspeak on linux?

Because, all the guides coming on Google doesn’t have that command which you sent which shows the query password.

I have been following this: https://www.hostinger.in/tutorials/how-to-make-a-teamspeak-3-server/

And it doesn’t work properly to show that password

Please!

I see.
The guide you followed installs the server as a service directly. Thus there is no real tty output and you don’t receive the password.
I would do the following:

sudo service teamspeak stop
sudo -u teamspeak /home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini serveradmin_password="ThePasswordYouDesire"

wait for it to fully start and then press Ctrl + C to stop the server again.

sudo service teamspeak start

Now the new password should be set.

1 Like

Okay. Thanks. Let’s say, I install the server normally without making it service.

I use ./ts3server_startscript.sh start

This way I will have my admin password and key.

After that, How can I make the service so that teamspeak starts as soon as the server starts?

Because I tried to do the service creation steps and teamspeak doesn’t start at all.

I still have to ./ts3server_startscript.sh start to make it start even though I have done the follow steps:

sudo nano /lib/systemd/system/teamspeak.service

[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target


systemctl enable teamspeak.service
systemctl start teamspeak.service

yes.

Can you run

service teamspeak status

and share the output?

1 Like

Steps:

sudo su -

yum -y update

yum install nano wget perl tar net-tools bzip2 -y

adduser teamspeak

cd /home/teamspeak

wget http://dl.4players.de/ts/releases/3.12.1/teamspeak3-server_linux_amd64-3.12.1.tar.bz2

tar xvf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

cd teamspeak3-server_linux_amd64 && mv * /home/teamspeak && cd .. && rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2

touch /home/teamspeak/.ts3server_license_accepted

./ts3server_startscript.sh start

I copy the password and key.

After that, What you think I should do to make sure teamspeak launches with the server getting reboot/on automatically?

Thanks.

Well the service is imo the correct way to do it.
You have to create the service like shown in the tutorial. It should work.
You should run this before ./ts3server_startscript.sh start though:

chown -R teamspeak:teamspeak /home/teamspeak/
1 Like

Okay, I first sent the statement which you told me to send

After that, I sent the start statement to have the password and key.

Now, I am going to make the service as shown in that blog post.

But do you want to me to first connect to the teamspeak client and enter my key or I should make the service before connecting to the client?

Secondly, I should stop the server before making the service?

I’m little new in Linux that’s why I am facing issues.

Secondly, It is not going to the new line with the root… Should I press ctrl + C to go to the next line and do the service thing?


I followed the blog steps to make the service…

This is the error I get:

Okay, I first sent the statement which you told me to send

After that, I sent the start statement to have the password and key.

Now, I am going to make the service as shown in that blog post.

But do you want to me to first connect to the teamspeak client and enter my key or I should make the service before connecting to the client?

Secondly, I should stop the server before making the service?

I’m little new in Linux that’s why I am facing issues.

Secondly, It is not going to the new line with the root… Should I press ctrl + C to go to the next line and do the service thing?


I followed the blog steps to make the service…

This is the error I get:

There is something wrong I am doing or something wrong with the steps…

Because If I do this:

./ts3server_startscript.sh start

And then I make a service.

Auto-Start doesn’t work.

But if I skip the ./ts3server_startscript.sh start

and make service directly, auto-start works fine.

Yes sorry, my fault.
If you use the startscript to start the server it will not stop once it finished executing.
So you will have to stop it manually after starting it for the first time.
(service teamspeak stop)
When the service does not start and the status reports failure can you run journalctl -u teamspeak? This will show the log why it could not start.

2 Likes

Hmm, Can you do one thing. If you could send me the steps which would give me the password and key plus… it created the automated reboot stuff too?

I will do that directly and it will solve all the hassle.

I really appreciate your help in this.

Thanks.

Ok. I can’t test the service part as I only got the wsl right now but this should work:

sudo su -
yum -y update
yum install nano wget perl tar net-tools bzip2 -y
adduser teamspeak --disabled-login
cd /home/teamspeak
wget https://files.teamspeak-services.com/releases/server/3.12.1/teamspeak3-server_linux_amd64-3.12.1.tar.bz2
tar xvf teamspeak3-server_linux_amd64-3.12.1.tar.bz2
cd teamspeak3-server_linux_amd64 && mv * /home/teamspeak && cd .. && rm -rf teamspeak3-server_linux_amd64-3.12.1.tar.bz2
touch /home/teamspeak/.ts3server_license_accepted
chown -R teamspeak:teamspeak .
sudo -u teamspeak ./ts3server inifile=ts3server.ini

Ctrl+C

nano /etc/systemd/system/teamspeak.service
[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target
systemctl enable teamspeak.service

I am pretty sure that this should work. Tell me if it did (not).

1 Like