1 (edited by marisag 2019-02-27 13:14:44)

Topic: Teeworlds Add Maps utility to add all maps in your maps folder

This tool will scan your maps folder and create a config file with voting options for all the maps in your maps folder. You can use this to rebuild your config after adding maps to your server. Only tested on Linux servers. You can get it here: https://sourceforge.net/projects/teewor … s-utility/ and if you have any questions just ask me!

--- https://TeeworldFans.GamePlayer.club - Our Official Teeworlds Fan Site - hosts for $14/month first free! of $5/month for a shared server

2 (edited by teeslayer 2019-02-27 17:36:49)

Re: Teeworlds Add Maps utility to add all maps in your maps folder

> my $MapFolder = "/root/twserver/data/maps";

Please don't run Teeworlds as root. It's dangerous to do so.

Just create an unprivileged user and do everything from there.

3

Re: Teeworlds Add Maps utility to add all maps in your maps folder

I had issues running as a regular user. I will give it another shot and ask for help if i need it...

--- https://TeeworldFans.GamePlayer.club - Our Official Teeworlds Fan Site - hosts for $14/month first free! of $5/month for a shared server

4 (edited by teeslayer 2019-02-28 13:11:31)

Re: Teeworlds Add Maps utility to add all maps in your maps folder

I see that you're running all game servers on GamePlayer.club as root if I look at the other StartUp scripts on your Github profile. Being root might be super convenient since you have all the permissions, but at the same time an attacker who finds an exploit will have the same permissions and therefore he or she will have complete control over your server (including retracting all traces so you may not even realize it). Or let's imagine a normal bug in the binary which does "rm -rf /*". You don't want that. smile

5

Re: Teeworlds Add Maps utility to add all maps in your maps folder

Nope, I was aware of the issues, but as I use that server for nothing other than the website & game server I wasn't as worried. That server has a daily offsite backup so little would be lost... I will look into running as a regular user now I know it works as root...

--- https://TeeworldFans.GamePlayer.club - Our Official Teeworlds Fan Site - hosts for $14/month first free! of $5/month for a shared server