In my previous article on How to run Teamspeak3 onDigital Ocean the instructions have you create a teamspeak3 user and change ownership of the files. I noticed in some of the comments over there that people noticed it was running as root, not the greatest thing for security.
I noticed my server was also running as root, here’s how to fix it if you used my instructions:
Shut down Teamspeak:
sudo service teamspeak3 stop
Remove the /etc/init.d/teamspeak3 soft link:
sudo rm /etc/init.d/teamspeak3
Now edit /etc/init.d/teamspeak3 and set the contents to this:
su -c "/usr/local/teamspeak3/ts3server_startscript.sh [email protected]" teamspeak3
Set the file to be executable:
sudo chmod u+x /etc/init.d/teamspeak3
Fix permissions, many of the Teamspeak files are probably owned by root now which would prevent the server from starting:
Digital Ocean provides a Virtual Private Server for just $5 a month. It also happens to be perfect to run a Teamspeak 3 server on. Teamspeak is a great way to chat with friends while playing games or pair programming.
This how-to assumes you’re running Ubuntu 12.04 (or something close to it) and that you already have your server spun up and ready to SSH into. Visit the Community section of Digital Ocean if you need further help.
Step 1 – Get TeamSpeak 3
Our first step is to download the TeamSpeak 3 server from teamspeak.com. Make sure you’re in a directory you own and then execute the following command: