[GH-ISSUE #1693] [Install] Used chmod/chown to assign folders to server user account; access still denied #1318

Closed
opened 2026-02-27 02:56:28 +03:00 by kerem · 4 comments
Owner

Originally created by @ReverendV92 on GitHub (Nov 13, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1693

Have never used Linux at all before after 20+ years of Windows use, so this is a pretty big culture shock, so bear with me.

I'm trying to install the GMod server version. I followed the guide, down to the part where I have to use this command as the gmodserver user:
wget -N --no-check-certificate https://gameservermanagers.com/dl/linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh gmodserver

I got 'access denied' so I googled it, got a bunch of previous issues here all related to the folder not being inherently owned by the gmodserver user. Found a previous answer that listed this as the command to give ownership to the user:
chown -R gmodserver:gmodserver /home/gmodserver

Ran that command as root. As seems to be the Linux way, no feedback on whether or not it worked. Then I ran:
su gmodserver

To sudo back into the server account. Ran the install command again and had the same result.

Is there something I'm doing wrong? I'm completely lost on how to use this OS.

Originally created by @ReverendV92 on GitHub (Nov 13, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1693 Have never used Linux at all before after 20+ years of Windows use, so this is a pretty big culture shock, so bear with me. I'm trying to install the GMod server version. I followed the guide, down to the part where I have to use this command as the gmodserver user: `wget -N --no-check-certificate https://gameservermanagers.com/dl/linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh gmodserver` I got 'access denied' so I googled it, got a bunch of previous issues here all related to the folder not being inherently owned by the gmodserver user. Found a previous answer that listed this as the command to give ownership to the user: `chown -R gmodserver:gmodserver /home/gmodserver` Ran that command as root. As seems to be the Linux way, no feedback on whether or not it worked. Then I ran: `su gmodserver` To sudo back into the server account. Ran the install command again and had the same result. Is there something I'm doing wrong? I'm completely lost on how to use this OS.
kerem closed this issue 2026-02-27 02:56:28 +03:00
Author
Owner

@MarkTwoFive commented on GitHub (Nov 13, 2017):

First: The LGSM issues are not for personal issues. Please read the wiki first.

Secondly: Additionally to owning the folder the user "gmodserver" may also need to have write-access to that folder. Assuming you're using linux standarts that would meen you'll need to verify if your /home/gmodserver folder is owned by gmodserver:gmodserver and has his permissions set to at least 700.

Personally I'd also recommend using sudo -iu <user> to change users from/to root instead of just su.

<!-- gh-comment-id:344007145 --> @MarkTwoFive commented on GitHub (Nov 13, 2017): First: The LGSM issues are __not__ for personal issues. Please read the wiki first. Secondly: Additionally to owning the folder the user "gmodserver" may also need to have write-access to that folder. Assuming you're using linux standarts that would meen you'll need to verify if your ``/home/gmodserver`` folder is owned by ``gmodserver:gmodserver`` and has his permissions set to at least ``700``. Personally I'd also recommend using ``sudo -iu <user>`` to change users from/to root instead of just ``su``.
Author
Owner

@ReverendV92 commented on GitHub (Nov 13, 2017):

I apologise for my mistake then. I read the wiki, but as someone who has absolutely 0 experience in a Unix environment, I'm in way over my head here. I don't know how to verify if gmodserver owns the folder. Nor do I understand the syntaxical reason for username:username, what it means to have or how a permission level is set to >=700, or know what the difference between sudo and su are as I don't know what either of them do.At this point I'm considering ditching Linux altogether and finding a host that supports Windows for the sake of my own sanity.-- Sent from Mobile12:11, November 13, 2017, "Magnus Leßmann (aka. mark332)" notifications@github.com:First: The LGSM issues are not for personal issues. Please read the wiki first.Secondly: Additionally to owning the folder the user "gmodserver" may also need to have write-access to that folder. Assuming you're using linux standarts that would meen you'll need to verify if your /home/gmodserver folder is owned by gmodserver:gmodserver and has his permissions set to at least 700.Personally I'd also recommend using sudo -iu to change user from/to root instead of just su.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

<!-- gh-comment-id:344013289 --> @ReverendV92 commented on GitHub (Nov 13, 2017): I apologise for my mistake then. I read the wiki, but as someone who has absolutely 0 experience in a Unix environment, I'm in way over my head here. I don't know how to verify if gmodserver owns the folder. Nor do I understand the syntaxical reason for username:username, what it means to have or how a permission level is set to >=700, or know what the difference between sudo and su are as I don't know what either of them do.At this point I'm considering ditching Linux altogether and finding a host that supports Windows for the sake of my own sanity.-- Sent from Mobile12:11, November 13, 2017, "Magnus Leßmann (aka. mark332)" <notifications@github.com>:First: The LGSM issues are not for personal issues. Please read the wiki first.Secondly: Additionally to owning the folder the user "gmodserver" may also need to have write-access to that folder. Assuming you're using linux standarts that would meen you'll need to verify if your /home/gmodserver folder is owned by gmodserver:gmodserver and has his permissions set to at least 700.Personally I'd also recommend using sudo -iu <user> to change user from/to root instead of just su.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
Author
Owner

@UltimateByte commented on GitHub (Nov 13, 2017):

Welcome to Linux. Hopefully the experience will be as rich for you as it was for me!

I don't know how to verify if gmodserver owns the folder

Protip:
ls -l /path/to/dir/or/file
Will display files and their permissions and ownership.

Protip 2:
ls -laltr /path/to/dir/or/file
Will do the same but sort the output with the latest modified last.

chmod -R 755 /home/gmodserver && chown -R gmodserver:gmodserver /home/gmodserver
Will probably solve your issue, even though I don't see why and how you would have fucked up your permissions on a brand new user.
Also, maybe make sure your user has access to bash or is not chrooted in a bad way. If you created your user with adduser (not useradd which is for advanced Linux users) and did nothing fancy, I don't see how it would fail on a simple wget.

If LGSM makes life easier for admins, it doesn't prevent them from doing your homework and know at least the basics about Linux before getting into it. You need to try and fucking a bunch of Linux installs before even thinking to put a service on production. You need to know the basics, like managing users, managing permissions... or checking files and permissions. hm.

But github is for development, not for personal support.
We have other ways to provide support, check
https://github.com/GameServerManagers/LinuxGSM/wiki/Support

And also read carefully all the documentation.

<!-- gh-comment-id:344039564 --> @UltimateByte commented on GitHub (Nov 13, 2017): Welcome to Linux. Hopefully the experience will be as rich for you as it was for me! > I don't know how to verify if gmodserver owns the folder Protip: `ls -l /path/to/dir/or/file` Will display files and their permissions and ownership. Protip 2: `ls -laltr /path/to/dir/or/file` Will do the same but sort the output with the latest modified last. `chmod -R 755 /home/gmodserver && chown -R gmodserver:gmodserver /home/gmodserver` Will probably solve your issue, even though I don't see why and how you would have fucked up your permissions on a brand new user. Also, maybe make sure your user has access to bash or is not chrooted in a bad way. If you created your user with `adduser` (not `useradd` which is for advanced Linux users) and did nothing fancy, I don't see how it would fail on a simple wget. If LGSM makes life easier for admins, it doesn't prevent them from doing your homework and know at least the basics about Linux before getting into it. You need to try and fucking a bunch of Linux installs before even thinking to put a service on production. You need to know the basics, like managing users, managing permissions... or checking files and permissions. hm. But github is for development, not for personal support. We have other ways to provide support, check https://github.com/GameServerManagers/LinuxGSM/wiki/Support And also read carefully all the documentation.
Author
Owner

@lock[bot] commented on GitHub (Nov 13, 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:438441378 --> @lock[bot] commented on GitHub (Nov 13, 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#1318
No description provided.