[GH-ISSUE #598] [ts3server] Option to reset adminpassword #483

Closed
opened 2026-02-27 02:01:46 +03:00 by kerem · 19 comments
Owner

Originally created by @dgibbs64 on GitHub (Dec 31, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/598

Originally assigned to: @UltimateByte on GitHub.

Had a twitter users confused on how to recover or reset his adminpassword. It may be a good idea to see if the option to reset it could be built in to LGSM

Originally created by @dgibbs64 on GitHub (Dec 31, 2015). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/598 Originally assigned to: @UltimateByte on GitHub. Had a twitter users confused on how to recover or reset his adminpassword. It may be a good idea to see if the option to reset it could be built in to LGSM
kerem closed this issue 2026-02-27 02:01:46 +03:00
Author
Owner

@UltimateByte commented on GitHub (Dec 31, 2015):

Yay, let's talk about this when i go under 1g/l of alcohol ! Happy new year to everyone !!

<!-- gh-comment-id:168262920 --> @UltimateByte commented on GitHub (Dec 31, 2015): Yay, let's talk about this when i go under 1g/l of alcohol ! Happy new year to everyone !!
Author
Owner

@UltimateByte commented on GitHub (Jan 1, 2016):

I approve that it'd be great ! I always wondered what would happen if i losed my identity or if an admin could demote me because of a group right security mistake... Never looked anything about it yet, but knowing that lgsm can do it would be comforting according to my experience.
I assume you already know how to do it, or will it require some research ? I can help if needed.

<!-- gh-comment-id:168280401 --> @UltimateByte commented on GitHub (Jan 1, 2016): I approve that it'd be great ! I always wondered what would happen if i losed my identity or if an admin could demote me because of a group right security mistake... Never looked anything about it yet, but knowing that lgsm can do it would be comforting according to my experience. I assume you already know how to do it, or will it require some research ? I can help if needed.
Author
Owner

@dgibbs64 commented on GitHub (Jan 1, 2016):

Yeah there is a command line parameter for doing this. Im not in a rush to implement this yet but I think its a great idea.

<!-- gh-comment-id:168317635 --> @dgibbs64 commented on GitHub (Jan 1, 2016): Yeah there is a command line parameter for doing this. Im not in a rush to implement this yet but I think its a great idea.
Author
Owner

@UltimateByte commented on GitHub (Jan 1, 2016):

I'm very interested in learning about this as i use and administrate a TS server every day, which was installed and is monitored using your script. :p

If you have a link to provide it'd be great, otherwise i'm gonna make some ressearch in the next few days.
Maybe i could give a hand :)

<!-- gh-comment-id:168320675 --> @UltimateByte commented on GitHub (Jan 1, 2016): I'm very interested in learning about this as i use and administrate a TS server every day, which was installed and is monitored using your script. :p If you have a link to provide it'd be great, otherwise i'm gonna make some ressearch in the next few days. Maybe i could give a hand :)
Author
Owner

@ScottSmudger commented on GitHub (Jan 1, 2016):

Agreed! Although it is fairly easy to just edit the ini file

<!-- gh-comment-id:168351035 --> @ScottSmudger commented on GitHub (Jan 1, 2016): Agreed! Although it is fairly easy to just edit the ini file
Author
Owner

@dgibbs64 commented on GitHub (Jan 1, 2016):

@ScottSmudger you for some reason deleted the new wiki page I just added. I have restored it. https://github.com/dgibbs64/linuxgsm/wiki/SteamCMD-Login

Yes it is easy however I had someone who had no idea how to do it and I think it shouldn't be too difficult to do.

<!-- gh-comment-id:168351142 --> @dgibbs64 commented on GitHub (Jan 1, 2016): @ScottSmudger you for some reason deleted the new wiki page I just added. I have restored it. https://github.com/dgibbs64/linuxgsm/wiki/SteamCMD-Login Yes it is easy however I had someone who had no idea how to do it and I think it shouldn't be too difficult to do.
Author
Owner

@ScottSmudger commented on GitHub (Jan 1, 2016):

@dgibbs64 I made an edit, then the changes took effect straight away, weird.

Or when your script creates the ini file, you could also include the serveradmin_password parameter

<!-- gh-comment-id:168351468 --> @ScottSmudger commented on GitHub (Jan 1, 2016): @dgibbs64 I made an edit, then the changes took effect straight away, weird. Or when your script creates the ini file, you could also include the serveradmin_password parameter
Author
Owner

@UltimateByte commented on GitHub (Jan 2, 2016):

Found this : https://support.teamspeakusa.com/index.php?/Knowledgebase/Article/View/326/16/how-do-i-change-or-reset-the-password-of-the-serveradmin-server-query-account

The rating of this article is very very low, so i'm not sure if it even works.

Found this article too (in french) http://hawkcreation.com/teamspeak-3-retrouver-mot-de-passe-serveradmin/
That says basically the same thing.

ts3server_minimal_runscript.sh serveradmin_password=newpassword

Should be quite easy to add a function to reset the password.

<!-- gh-comment-id:168440348 --> @UltimateByte commented on GitHub (Jan 2, 2016): Found this : https://support.teamspeakusa.com/index.php?/Knowledgebase/Article/View/326/16/how-do-i-change-or-reset-the-password-of-the-serveradmin-server-query-account The rating of this article is very very low, so i'm not sure if it even works. Found this article too (in french) http://hawkcreation.com/teamspeak-3-retrouver-mot-de-passe-serveradmin/ That says basically the same thing. ts3server_minimal_runscript.sh serveradmin_password=newpassword Should be quite easy to add a function to reset the password.
Author
Owner

@UltimateByte commented on GitHub (Jan 3, 2016):

I just made a new ts3 test server.

@dgibbs64
At install i get a command not found error :

Creating Configs

downloading lgsm-default.ini...OK
creating ts3-server.ini config file.
‘/home/serverdev/ts3server/serverfiles/lgsm-default.ini’ -> ‘/home/serverdev/ts3server/serverfiles/ts3-server.ini’
/home/serverdev/ts3server/functions/command_install.sh: line 36: install_ts3db.sh: command not found
fetching functions/install_complete.sh...OK

Please note that i've got another ts3 server running with the default port.
Also, as it's starting with the default config with the default port to get the password, those ports may conflict and cause the problem.

<!-- gh-comment-id:168447726 --> @UltimateByte commented on GitHub (Jan 3, 2016): I just made a new ts3 test server. @dgibbs64 At install i get a command not found error : # Creating Configs downloading lgsm-default.ini...OK creating ts3-server.ini config file. ‘/home/serverdev/ts3server/serverfiles/lgsm-default.ini’ -> ‘/home/serverdev/ts3server/serverfiles/ts3-server.ini’ /home/serverdev/ts3server/functions/command_install.sh: line 36: install_ts3db.sh: command not found fetching functions/install_complete.sh...OK Please note that i've got another ts3 server running with the default port. Also, as it's starting with the default config with the default port to get the password, those ports may conflict and cause the problem.
Author
Owner

@dgibbs64 commented on GitHub (Jan 3, 2016):

install_ts3db.sh was not listed in core_functions.sh

<!-- gh-comment-id:168448459 --> @dgibbs64 commented on GitHub (Jan 3, 2016): install_ts3db.sh was not listed in core_functions.sh
Author
Owner

@UltimateByte commented on GitHub (Jan 3, 2016):

OK, i had to remove the ini command to get it working, but it works !
https://github.com/UltimateByte/linuxgsm/tree/master/functions
Maybe there is a cleaner way to start up the server while doing it, but for now, this is how i got it working.
Tell me if i can pull request it.

<!-- gh-comment-id:168460494 --> @UltimateByte commented on GitHub (Jan 3, 2016): OK, i had to remove the ini command to get it working, but it works ! https://github.com/UltimateByte/linuxgsm/tree/master/functions Maybe there is a cleaner way to start up the server while doing it, but for now, this is how i got it working. Tell me if i can pull request it.
Author
Owner

@UltimateByte commented on GitHub (Jan 3, 2016):

Escpecially this : https://github.com/UltimateByte/linuxgsm/blob/master/functions/command_serveradmin_password.sh

Not sure about the naming btw.

<!-- gh-comment-id:168489606 --> @UltimateByte commented on GitHub (Jan 3, 2016): Escpecially this : https://github.com/UltimateByte/linuxgsm/blob/master/functions/command_serveradmin_password.sh Not sure about the naming btw.
Author
Owner

@dgibbs64 commented on GitHub (Jan 3, 2016):

naming is pretty good. However I recommend

command_ts3_serveradmin_password.sh

so its easy to identify its specific to ts3

<!-- gh-comment-id:168505249 --> @dgibbs64 commented on GitHub (Jan 3, 2016): naming is pretty good. However I recommend command_ts3_serveradmin_password.sh so its easy to identify its specific to ts3
Author
Owner

@UltimateByte commented on GitHub (Jan 3, 2016):

I thought it was a bit too long.
I'll do that tonight ^^

<!-- gh-comment-id:168518084 --> @UltimateByte commented on GitHub (Jan 3, 2016): I thought it was a bit too long. I'll do that tonight ^^
Author
Owner

@dgibbs64 commented on GitHub (Jan 3, 2016):

yeah it is a little long maybe command_ts3_server_password.sh to shorten it a little

<!-- gh-comment-id:168537848 --> @dgibbs64 commented on GitHub (Jan 3, 2016): yeah it is a little long maybe command_ts3_server_password.sh to shorten it a little
Author
Owner

@UltimateByte commented on GitHub (Jan 3, 2016):

I renamed it, should be fine !
Please check the start procedure, i'm pretty sure you could do it better than me. I'm more worried about the logfiles than anything else, as i didn't use any command for them for that procedure. I didn't check the logs after the procedure, but i used no commands, so i guess the procedure doesn't log anything, or uses the last logfile. Not a huge deal though.
Watch out, trying to load the ini file (like default setup) prevents the server from starting, that's why i didn't use the usual start script.

<!-- gh-comment-id:168544921 --> @UltimateByte commented on GitHub (Jan 3, 2016): I renamed it, should be fine ! Please check the start procedure, i'm pretty sure you could do it better than me. I'm more worried about the logfiles than anything else, as i didn't use any command for them for that procedure. I didn't check the logs after the procedure, but i used no commands, so i guess the procedure doesn't log anything, or uses the last logfile. Not a huge deal though. Watch out, trying to load the ini file (like default setup) prevents the server from starting, that's why i didn't use the usual start script.
Author
Owner

@UltimateByte commented on GitHub (Jan 7, 2016):

Pull request sent.

<!-- gh-comment-id:169783840 --> @UltimateByte commented on GitHub (Jan 7, 2016): Pull request sent.
Author
Owner

@dgibbs64 commented on GitHub (Jan 8, 2016):

Now been merged. https://github.com/dgibbs64/linuxgsm/pull/614

<!-- gh-comment-id:170126165 --> @dgibbs64 commented on GitHub (Jan 8, 2016): Now been merged. https://github.com/dgibbs64/linuxgsm/pull/614
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406332476 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#483
No description provided.