Factorio Server Manager & Factorio Running As Root
Please update the configuration files so these are not running as the root user. I have been trying to get them to run as another user but have been unsuccessful and need someone that knows what they are doing :) This is a security concern to have exposed ports to the internet and these running as root.
root 11055 10926 0 17:16 ? 00:00:01 ./factorio-server-manager -conf /opt/fsm-data/conf.json -dir /opt/factorio -port 80 root 11101 11055 12 17:17 ? 00:01:21 /opt/factorio/bin/x64/factorio --bind 0.0.0.0 --port 34197
I guess, you mean running them inside the docker image, with a different user. As far as i know, there is no easy and practical way to do so. The problem here is, that we use docker volumes and those always have the same access rights to the host and the container. The only thing, that is possible, is making a user in the container, which makes those volumes targeted to a random user on the host. Using docker-compose makes it even worse. I see no possible way, to do this (and yes, i tested a lot of ideas). If anybody knows how to do this, please write it here or create a PR with the addition.
You can run the image as a rootless container in podman.