Multiplayer Forum FAQ
Posted: Sun Nov 02, 2014 9:27 am
The game tries a default port. If you and your friend didn't specify a port, than it will work without mentioning a port.Krummelz wrote:When connecting to someone's server; do you have to specify the port if you know that they are using the default port?
Not now. This might come in 0.12.0.TheNarwhal wrote:Is there a way to control permissions in game, like who can use console commands, and such? Also, is there a way to have separate technologies between players?
You lose everything you're carrying, you mean? Or what?psorek wrote:You lose everything and respawn. Lots of pain if wearing full power armor and stuff...
Uhm what? I'm pretty sure I can execute binaries in /opt as user.Bytenex wrote:PLEASE! Do not advise people to put programs to "/opt". A software should always be run from a dedicated user. Running from "/opt" would require to run the server as root (which is always a bad idea).
You could but "/opt" is a root directory and outside of a protected environment. It would be more secure to run it from a users home directory. But do as you wishprg wrote:Uhm what? I'm pretty sure I can execute binaries in /opt as user.Bytenex wrote:PLEASE! Do not advise people to put programs to "/opt". A software should always be run from a dedicated user. Running from "/opt" would require to run the server as root (which is always a bad idea).
I don't follow. What do you understand by "root directory" and "protected environment"? Does that also mean I shouldn't execute binaries found in /usr? How does having the binary in a place that's actually user-writable increase security?Bytenex wrote:You could but "/opt" is a root directory and outside of a protected environment. It would be more secure to run it from a users home directory. But do as you wish
Ah, ok. The world seems to disagree with you though.Bytenex wrote:
Thats what I call a "root directory"
Indeed. So put the game there as root, then execute it from there as user.Bytenex wrote:and without root you are not able to write to this directory.
Oh of course. This must be it.Bytenex wrote:But maybe I know why we can't find a consens: I worked with servers at the university.
Right, so when you share a server with dozens of people who are not supposed to be able to access the game, you don't put it in a world-readable directory. But in such a situation you probably wouldn't have root access anyway. If you're the only one using the server it doesn't matter much where you put the game, I can't see how having it in $HOME would improve security.Bytenex wrote:So multiuser server is nothing unknown to me. When I try to put up servers I always have in mind that not all users should be able to access the software. "/opt" is an "all-user-access-directory" and therefore not practical. Except when installing the software for everybody.
You do not need elevated privileges to execute a binary in /opt. The config and save games can still be written to $HOME.Bytenex wrote:Also using a home directory ensures that you will not need elevated rights to do something. Everything in there is already user-locked.
IMO things would be more secure if user-writable places like /tmp and /home would be mounted noexec, but what do I know...Bytenex wrote:But I'm totally okay with this entry staying in the wiki if somebody else thinks differently. I was just suggesting a imho more secure server.
I'm interested in seeing your init script, I'm maintaining one of my own over at https://github.com/Bisa/factorio-init and getting ideas for features etc from others is alays fun - that is if you are willing to release yours with a shareable license ofcoruseBytenex wrote:If there is public request i could upload a starting script for linux (written by me) which enables multiversion support, creating maps and starting a server.