mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #2975] Max Server Players To Be Locked Anyhow! #2116
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NamVr on GitHub (Jul 21, 2020).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2975
As a linuxgsm user using csserver (CS 1.6) I want max_players for each of my server to be locked anyhow.
Basic info
Further Information
I have multiple servers installed in my vps. But I want that max players should be locked in all the servers in my VPS, so preventing users not to change the max players. They can change it easily using common.cfg file and after a restart.
Further Reading
Alternatively, I can set up a monitor for max players change but I can't see any where here.
@issue-label-bot[bot] commented on GitHub (Jul 21, 2020):
Issue-Label Bot is automatically applying the label
type: feature requestto this issue, with a confidence of 0.70. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
@JimTR commented on GitHub (Jul 21, 2020):
why give 'users' the ability to change config files ? why not send all requests via yourself and you edit the values
@NamVr commented on GitHub (Jul 21, 2020):
How?
@NamVr commented on GitHub (Jul 21, 2020):
Currently users can change the config files easily by logging into SSH, then navigating to
lgsm/lgsm-config/csserver/ and here they can change common.cfg
@JimTR commented on GitHub (Jul 21, 2020):
your users have access to lgsm config files so make them writable to you only and not the actual user
@NamVr commented on GitHub (Jul 21, 2020):
I am using Ubuntu 16.04
I have made user like this
adduser csserver--> Set password@NamVr commented on GitHub (Jul 21, 2020):
Can you tell me how can I do it?
Default sudo user is ubuntu,
I am using AWS Ec2
@JimTR commented on GitHub (Jul 21, 2020):
ok chmod (write) the files to you rather than user csserver
@NamVr commented on GitHub (Jul 21, 2020):
That's what I am asking how?
@JimTR commented on GitHub (Jul 21, 2020):
chmod does the trick ..
@JimTR commented on GitHub (Jul 21, 2020):
just remember to allow read from the user
@NamVr commented on GitHub (Jul 21, 2020):
But in my newly made aws system,
I (as sudo ubuntu) have no access to write the files of csserver user
@JimTR commented on GitHub (Jul 21, 2020):
why .. as sudo you have access to everything and can change file permissions as you see fit
@NamVr commented on GitHub (Jul 21, 2020):
I said
it's a newly aws system I just made the instance@JimTR commented on GitHub (Jul 21, 2020):
so no sudo ?
@NamVr commented on GitHub (Jul 21, 2020):
I said I have got the sudo access, but in FTP I can't write changes in other user, only read.
Same applies for all other users, they can even read root files
@JimTR commented on GitHub (Jul 21, 2020):
that means you don't have sudo access ... sudo access allows you to read/write everything
@NamVr commented on GitHub (Jul 21, 2020):
But I can access root using
su -then password of root I have setBUT I can write and install packages using sudo .... using ubuntu
@JimTR commented on GitHub (Jul 21, 2020):
confusing your logging in as root ?
@JimTR commented on GitHub (Jul 21, 2020):
I would try sudo -s rather than su -
@NamVr commented on GitHub (Jul 21, 2020):
I didn't really understand I am completly new.
@dgibbs64 commented on GitHub (Jul 21, 2020):
It would be very difficult to prevent a user from changing the max players if they have access to the user directories. You would need to ensure that the user only has read-only access to the config-lgsm directory. But this would also mean that they are unable to change any other config settings.
I get the impression you are selling game servers on a slot basis. This isn't really practical for a project like LinuxGSM and would be better off using a full-on game server panel like TCadmin. If you want to sell game servers using LinuxGSM I recommend selling a whole VPS instance that way the user can do what they want within the VPS, instead of setting on a slot basis. Take a look at Linode as they do this with there one-click apps. I hope this helps
@JimTR commented on GitHub (Jul 21, 2020):
oh ok a gonk @dgibbs64
@NamVr commented on GitHub (Jul 21, 2020):
Yes correct
That's what I am asking how can I do it?
I have complete access to my VPS.
@NamVr commented on GitHub (Jul 21, 2020):
I know I need to toggle settings somewhere but how?
And if I can't, then I asked for monitor it? Like crons etc?
@JimTR commented on GitHub (Jul 21, 2020):
Ok lets see what you are doing
1: you have added a user to administer a game
2: you can admin the total server
@NamVr commented on GitHub (Jul 21, 2020):
Yup I guess
@JimTR commented on GitHub (Jul 21, 2020):
@dgibbs64 unless you chmod the file to permissions that favour the root user rather than the user ?
@NamVr commented on GitHub (Jul 21, 2020):
I use Bitvise to connect thorugh my server via port 22
@NamVr commented on GitHub (Jul 21, 2020):
Is there any way I can chmod so that user can only access the files in server directory:
/home/user/serverfiles/ ?
@NamVr commented on GitHub (Jul 21, 2020):
Security issue I think so,
Can anyone help here?
@NamVr commented on GitHub (Jul 21, 2020):
Okay let a contributor come and help me then.
It can be a feature request.
@dgibbs64 commented on GitHub (Jul 21, 2020):
if you change the permissions using
chownyou might be able to give a user access to serverfiles only. But this is something you change on the server level and not something done though LinuxGSM@NamVr commented on GitHub (Jul 21, 2020):
Ok any detailed guide on how can I do it?
@dgibbs64 commented on GitHub (Jul 21, 2020):
I don't have any guides. You will need to learn what chown and chmod commands are. They are pretty basic Linux commands so there are plenty of tutorials out there.
@NamVr commented on GitHub (Jul 21, 2020):
Okay so basically when a user logs into SSH using the username and password that I provide them, they simply directly login into /home/csserver/serverfiles and they can't access any upper files right>
@NamVr commented on GitHub (Jul 21, 2020):
That's what I said in my first comment.
It can be a linux gsm feature to prevent max user edition.
@NamVr commented on GitHub (Jul 21, 2020):
Ok let me tell everyone.
Can I use cron jobs? It will automatically rewrite the max players?
Or can I disable the common.cfg and instance.cfg files?
@kennyLtv commented on GitHub (Jul 21, 2020):
Idk depends on what you make your crons do. You'd have to check the number of slots against what it should be and reboot after you correct it if it's not the correct number.
Nope, they can't be disabled.
I don't believe this to be an LGSM issue, LGSM was intended to provide a simple interface for an admin to manage their game servers. If you are looking for features like locking the number of slots someone can have I'd suggest a panel like TCAdmin or GameCP so you have full control.
@Grimston commented on GitHub (Jul 22, 2020):
Might as well reveal it now, the control panel I am working on is designed to be kind of like TCAdmin or GameCP. I am implementing a whole range of features such as Billing, Internationalization, SSH Console, Server/Game Settings, Plugins/Addons, File Manager, Reports, Multi-Tenancy, Containerized game servers... all sorts of fancy and handy features to make this kind of thing possible with LinuxGSM.
I hope to have an early Alpha test available in a week or two using SSH connections to single installation game servers, the Agent controlled container servers will be sometime after that.
@NamVr commented on GitHub (Jul 22, 2020):
I understand.
But I have still not got my answers how can I do it?
I know there must be a way.
@kennyLtv commented on GitHub (Jul 22, 2020):
In all fairness how you do it isn't an LGSM issue, you'll have to figure out what is best on your end to manage that.
@NamVr commented on GitHub (Jul 22, 2020):
No sorry, I was here as by a feature request, not for suggestions in my vps. Kindly understand it's a feature request.
Can we make _default.cfg call from root user or outside the main user?
Or there must be a way for monitoring? I know that it's typical, but I think we can have a monitor every time the server restarts it checks the maxplayer variable and if it changes, it can inform us via slack or discord alerts as we have this feature in built already.
@dgibbs64 commented on GitHub (Jul 22, 2020):
As I already stated your feature request for monitoring max players would take time for me to develop, is not something that anyone else will ever require, so I will not be developing it. The only reason you want it is to stop your customers from altering max players. Why would I develop a feature in my spare time for free when it is only useful to one person who wants the feature to make money?
We have provided several suggestions and options for you to try such as altering config permissions, using a full web panel for reselling game servers, selling individual VPS's to people. You could even write your own script to monitor max players yourself using something like gamedig. You are welcome to look at the LinuxGSM code to get examples and develop a script yourself.
@NamVr commented on GitHub (Jul 22, 2020):
Why you guys always think that it's only for money?
Anyways I am ok to do the monitoring by myself if you don't wanna develop this thing.
@dgibbs64 commented on GitHub (Jul 22, 2020):
Because you are trying to sell counter-strike 1.6 servers on your website 🤷
https://namanvrati.cf/counter-strike/
@github-actions[bot] commented on GitHub (Jul 23, 2021):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.