Replies: 3 comments
-
After doing some experimentation, I have been able to replicate most of these scenarios and have a potential cause for the permissions problems. The dedicated server seems to be hard-coded (or at least there isn't a documented override) to put the save files in The current solution to update the UID/GID of the |
Beta Was this translation helpful? Give feedback.
-
After further experiments, |
Beta Was this translation helpful? Give feedback.
-
@tahosa yes, I made most of your discoveries along the way and documented most of it throughout a myriad of issues. Unfortunately, the server does hardcode a few things, and there's no conceivable route around these limitations aside from what has already been implemented. |
Beta Was this translation helpful? Give feedback.
-
Hello! Now that update 5 and dedicated servers have moved to the early access branch, I'm working on setting something up for me and my friends to play and would like to revive some of the discussion from #44 and other issues with permissions when the container doesn't run as root.
Before I run this on my own docker host, I definitely want to be able to run it as a non-privileged user instead of as root. I'm still experimenting with building and running the current version on the main branch and comparing behavior on the old branch, but wanted to make sure I understand the previous issues as best I can so I can open a PR that solves the issues to everyone's satisfaction. From what I saw, the problems generally fall into several categories:
/config
directory to the host causes errors when the internalsteam
user went to do anything/config
when container or server is startedIs this an accurate grouping of the problems, or are any missing from previous issues that I have overlooked?
The interplay between permissions during build, what permissions are on the host, potential restrictions with remote volumes like NFS, and the internal filesystem within the container are a nasty problem that I have had to solve before for other containerized servers so I'd love to be able to help solve this security issue if I can. It's entirely possible that this can also be solved entirely without needing functional changes, but it would require users to carefully inspect permissions on their host (and NFS if relevant) before running the container.
Beta Was this translation helpful? Give feedback.
All reactions