I'm running a dockerized Minecraft server (itzg/minecraft) in a fairly straightforward Ubuntu 18.04 server. The Minecraft directory is under /srv. If I sudo chmod 777 -R /srv, everything works great. So I know my issue is permissions related. However, I am not able to get it to work correctly otherwise, unless I make a specific account (not group) the owner of the server's file store.
I've done this:
If I then do sudo chmod 775 -R /srv, minecraft fails to save user progress. However, if I sudo chown -R myUsername:gameadmin /srv, it works. I've also confirmed that the gameadmin group has myUsername in it with getent group gameadmin.Code:sudo groupadd gameadmin sudo usermod -a -G gameadmin myUsername sudo chown -R root:gameadmin /srv
How can it be that with 775 permissions, the account owner and group owner do not have the same ability to write/modify files and directories?
Thanks in advance.
Bookmarks