mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #939] permission issues found gmod server #751
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#751
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 @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
@UltimateByte commented on GitHub (Jul 24, 2016):
Protip if you did crap with permissions :
chown -R * username:usernameGoogle about chown if needed.
@pab14567 commented on GitHub (Jul 24, 2016):
Thank you so much, I'm sorry to waste your time, about this.
@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
@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 ?
@dgibbs64 commented on GitHub (Jul 24, 2016):
chown - change file owner and group
change owner and group recursively e.g
@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
@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:gmodserverThis 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 ?
@pab14567 commented on GitHub (Jul 24, 2016):
This all happened after a tutorial said to put sv.db and and data folder to 755.
@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.
@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
@pab14567 commented on GitHub (Jul 24, 2016):
http://steamcommunity.com/sharedfiles/filedetails/?id=555696186
@UltimateByte commented on GitHub (Jul 24, 2016):
When a tutorial advises a VPS for a game server, run away. lol
Lol, 2 CPU for a monothreaded process.
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.
@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 ?
@UltimateByte commented on GitHub (Jul 24, 2016):
Just login as root and apply the chown command we told several times. Permissions issue will disappear.
@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.
@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?
@UltimateByte commented on GitHub (Jul 24, 2016):
That's it. ;)
@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 ;)
@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.