[GH-ISSUE #939] permission issues found gmod server #751

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

Originally created by @pab14567 on GitHub (Jul 24, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/939

So ive created everything, i've uploaded everything and whenever i try to start the gmod server, under the garrysmod username, it keeps saying perrmission denied. User does not have access to filse () then it shows every file in garrysmod. This happened after i started server once and stopped it and a tutorial said to put sv.db and data folder to 755

Originally created by @pab14567 on GitHub (Jul 24, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/939 So ive created everything, i've uploaded everything and whenever i try to start the gmod server, under the garrysmod username, it keeps saying perrmission denied. User does not have access to filse () then it shows every file in garrysmod. This happened after i started server once and stopped it and a tutorial said to put sv.db and data folder to 755
kerem closed this issue 2026-02-27 02:53:17 +03:00
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

Protip if you did crap with permissions :
chown -R * username:username
Google about chown if needed.

<!-- gh-comment-id:234752941 --> @UltimateByte commented on GitHub (Jul 24, 2016): Protip if you did crap with permissions : `chown -R * username:username` Google about chown if needed.
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

Thank you so much, I'm sorry to waste your time, about this.

<!-- gh-comment-id:234753217 --> @pab14567 commented on GitHub (Jul 24, 2016): Thank you so much, I'm sorry to waste your time, about this.
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

No problem about it. If i had no time at all i wouldn't answer. :p
You'd rather be sorry to use github instead of the steam group for this kind of issue ! :p

<!-- gh-comment-id:234753623 --> @UltimateByte commented on GitHub (Jul 24, 2016): No problem about it. If i had no time at all i wouldn't answer. :p You'd rather be sorry to use github instead of the steam group for this kind of issue ! :p
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

wait, what is this supposed to do ?
chown -R * username:username

and what am i supposed to do ?

<!-- gh-comment-id:234757630 --> @pab14567 commented on GitHub (Jul 24, 2016): wait, what is this supposed to do ? chown -R \* username:username and what am i supposed to do ?
Author
Owner

@dgibbs64 commented on GitHub (Jul 24, 2016):

man chown

chown - change file owner and group

change owner and group recursively e.g

chown -R * username:group

chown -R /home/csgoserver csgoserver:csgoserver
<!-- gh-comment-id:234764906 --> @dgibbs64 commented on GitHub (Jul 24, 2016): ``` man chown ``` chown - change file owner and group change owner and group recursively e.g ``` chown -R * username:group chown -R /home/csgoserver csgoserver:csgoserver ```
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

For the username:group do I put the main core username and the garrysmod group like root:garrysmod?

or do i leave it as it is, and same with the csgoserver part, do i just put gmodserver on both parts?Sorry, I'm kinda new to this

<!-- gh-comment-id:234782798 --> @pab14567 commented on GitHub (Jul 24, 2016): For the username:group do I put the main core username and the garrysmod group like root:garrysmod? or do i leave it as it is, and same with the csgoserver part, do i just put gmodserver on both parts?Sorry, I'm kinda new to this
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

Any user has a group created with it. In your case, you want files to belong to your user and group. Certainly not to root.
So as we said, for example, if your username is gmodserver :
chown -R /home/gmodserver gmodserver:gmodserver

This kind of things would not be necessary if you didn't mess up with permissions. So if i were you, i'd also search where i messed up with it in the first place. Anyways, if you're new to Linux, it's good thing to master chown and chmod, so it's a good time to do so.

Does it answer your question ?

<!-- gh-comment-id:234782899 --> @UltimateByte commented on GitHub (Jul 24, 2016): Any user has a group created with it. In your case, you want files to belong to your user and group. Certainly not to root. So as we said, for example, if your username is gmodserver : `chown -R /home/gmodserver gmodserver:gmodserver` This kind of things would not be necessary if you didn't mess up with permissions. So if i were you, i'd also search where i messed up with it in the first place. Anyways, if you're new to Linux, it's good thing to master chown and chmod, so it's a good time to do so. Does it answer your question ?
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

This all happened after a tutorial said to put sv.db and and data folder to 755.

<!-- gh-comment-id:234783368 --> @pab14567 commented on GitHub (Jul 24, 2016): This all happened after a tutorial said to put sv.db and and data folder to 755.
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

Then sv.db should have been the only file affected.
By the way, sv.db is not something you'd like to share or take from elsewere, it contains a lot (if not every in some cases) of data from your personal gmod server. So hopefully you just put a backup or your old sv.db or you could get rekt.

<!-- gh-comment-id:234784000 --> @UltimateByte commented on GitHub (Jul 24, 2016): Then sv.db should have been the only file affected. By the way, sv.db is not something you'd like to share or take from elsewere, it contains a lot (if not every in some cases) of data from your personal gmod server. So hopefully you just put a backup or your old sv.db or you could get rekt.
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

Yeah, I know about the data, in it

here's the link to the tutorial that said to change the file permissions to 755

<!-- gh-comment-id:234784485 --> @pab14567 commented on GitHub (Jul 24, 2016): Yeah, I know about the data, in it here's the link to the tutorial that said to change the file permissions to 755
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

http://steamcommunity.com/sharedfiles/filedetails/?id=555696186

<!-- gh-comment-id:234785168 --> @pab14567 commented on GitHub (Jul 24, 2016): http://steamcommunity.com/sharedfiles/filedetails/?id=555696186
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

When a tutorial advises a VPS for a game server, run away. lol

"If your server is going to be for around 42-64 people then I recommend going with:
2 high spec intel xeon V-Core (3.2GHz +)"

Lol, 2 CPU for a monothreaded process.

"you may notice that nothing saves (if you have already launched the server). This is because of permissions, so what you need to do is use the SFTP program to edit the permissions of the data folder and sv.db file to 755"

This is complete bullshit.

However, if your FTP program is correctly set, changing permissions won't affect ownership.

Didn't read a lot from this tutorial, but it seems like it contains a lot of bullshit. I wouldn't learn from that.

For linux system admin, search better tutorials. For Instructions about LGSM, they are given on gameservermanagers.com's game page, and we got a pretty well ellaborated wiki here to learn the basics and go further : https://github.com/dgibbs64/linuxgsm/wiki
For gmod specific stuff, such as mounting css content to your server, then you can use LGSM too, just make another user, i usually make an "srcds" user with a subfolder by game content i wanna mount. Then you just edit mount.cfg accordingly. Pretty straight forward.
To conclude, there is not any point where you gotta change chmod or chown if you do things properly.

<!-- gh-comment-id:234785948 --> @UltimateByte commented on GitHub (Jul 24, 2016): When a tutorial advises a VPS for a game server, run away. lol > "If your server is going to be for around 42-64 people then I recommend going with: > 2 high spec intel xeon V-Core (3.2GHz +)" Lol, 2 CPU for a monothreaded process. > "you may notice that nothing saves (if you have already launched the server). This is because of permissions, so what you need to do is use the SFTP program to edit the permissions of the data folder and sv.db file to 755" This is complete bullshit. However, if your FTP program is correctly set, changing permissions won't affect ownership. Didn't read a lot from this tutorial, but it seems like it contains a lot of bullshit. I wouldn't learn from that. For linux system admin, search better tutorials. For Instructions about LGSM, they are given on gameservermanagers.com's game page, and we got a pretty well ellaborated wiki here to learn the basics and go further : https://github.com/dgibbs64/linuxgsm/wiki For gmod specific stuff, such as mounting css content to your server, then you can use LGSM too, just make another user, i usually make an "srcds" user with a subfolder by game content i wanna mount. Then you just edit mount.cfg accordingly. Pretty straight forward. To conclude, there is not any point where you gotta change chmod or chown if you do things properly.
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

So basically, cause im fucked now, i just re-install everything, i just delete all those files, or re-install the vps ?

<!-- gh-comment-id:234786036 --> @pab14567 commented on GitHub (Jul 24, 2016): So basically, cause im fucked now, i just re-install everything, i just delete all those files, or re-install the vps ?
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

Just login as root and apply the chown command we told several times. Permissions issue will disappear.

<!-- gh-comment-id:234786139 --> @UltimateByte commented on GitHub (Jul 24, 2016): Just login as root and apply the chown command we told several times. Permissions issue will disappear.
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

Anyways, in order to be a good admin, i'd suggest to get some Linux knowlege, try stuff, fuckup and reinstall a test machine, before getting into something more serious.

<!-- gh-comment-id:234786242 --> @UltimateByte commented on GitHub (Jul 24, 2016): Anyways, in order to be a good admin, i'd suggest to get some Linux knowlege, try stuff, fuckup and reinstall a test machine, before getting into something more serious.
Author
Owner

@pab14567 commented on GitHub (Jul 24, 2016):

Im still a bit confused on the chown commands. Do i just copy paste? the new username i created for the gmod server is called garrysmod, so do i just replace

chown -R /home/gmodserver gmodserver:gmodserver

with chown -R /home/garrysmod garrysmod:garrysmod?

<!-- gh-comment-id:234791353 --> @pab14567 commented on GitHub (Jul 24, 2016): Im still a bit confused on the chown commands. Do i just copy paste? the new username i created for the gmod server is called garrysmod, so do i just replace chown -R /home/gmodserver gmodserver:gmodserver with chown -R /home/garrysmod garrysmod:garrysmod?
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

That's it. ;)

<!-- gh-comment-id:234793875 --> @UltimateByte commented on GitHub (Jul 24, 2016): That's it. ;)
Author
Owner

@UltimateByte commented on GitHub (Jul 24, 2016):

This is one of the very basics of Linux, that's cool you learned it, but you should already know that if you plan making servers. As i said, really consider experimenting and learning a bit more before starting something serious. You don't need months, you just need to try a lot of stuff quite a few times.

I guess we can close the issue. Please, use the Steam Group if you got more questions, I and others will be glad to help as long as you're kind, clear, and provide enough information for us to help you.
http://steamcommunity.com/groups/linuxgsm/discussions/0/
And always remember that google is your best friend !

Have a great Linux time ;)

<!-- gh-comment-id:234794175 --> @UltimateByte commented on GitHub (Jul 24, 2016): This is one of the very basics of Linux, that's cool you learned it, but you should already know that if you plan making servers. As i said, really consider experimenting and learning a bit more before starting something serious. You don't need months, you just need to try a lot of stuff quite a few times. I guess we can close the issue. Please, use the Steam Group if you got more questions, I and others will be glad to help as long as you're kind, clear, and provide enough information for us to help you. http://steamcommunity.com/groups/linuxgsm/discussions/0/ And always remember that google is your best friend ! Have a great Linux time ;)
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:406205079 --> @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#751
No description provided.