Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple open issues related to permission #558

Open
icheered opened this issue Nov 30, 2024 · 1 comment
Open

Multiple open issues related to permission #558

icheered opened this issue Nov 30, 2024 · 1 comment

Comments

@icheered
Copy link

icheered commented Nov 30, 2024

I noticed several people running into issues related to permissions, none of which are resolved. It might be a good idea to keep all communication in a single thread.

I noticed that purging the factoriotools image and re-pulling temporarily solved the permission issues. However after a while saving the game kept failing.

What I noticed is that even after running sudo chown -R 845:845 factorio_folder some files would be owned by user 100844 instead of 845 (run ls -la in the factorio folder and check the 3rd and 4th column). After chowning all files to user 100844 it does seem to work (for now).

I am running NixOS with docker-compose with docker in rootless mode.

@aSemy
Copy link

aSemy commented Dec 8, 2024

I've had a look, and have two observations. I'm not super up to date with Docker best practices, but they didn't match my understanding. Maybe someone can explain, or maybe they could indicate a solution.

  1. I see the Dockerfile manually creates a user, but didn't see a USER instruction in the Dockerfile. Isn't that required?

  2. Is it necessary for the account that runs the Factorio file to chown all files?

    && chown -R "$USER":"$GROUP" /opt/factorio /factorio

    I can imagine this would be necessary for a zero-config option, but I suspect that's causing issues with systems that have other ways of configuring permissions. On my machine I need my user to retain ownership of the files, but I do grant read/write permissions to the Factorio user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants