Editing SystemD Server Guide
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
To maximize server security, we will be setting up a dedicated user that only has the privileges to run the dedicated server, and nothing else. | To maximize server security, we will be setting up a dedicated user that only has the privileges to run the dedicated server, and nothing else. | ||
β | <code>sudo useradd -m | + | <code>sudo useradd -m stationeers</code> |
+ | |||
+ | We won't need to log in with the user at all, so to increase security even more, let's prevent anyone from logging in with the user. | ||
+ | |||
+ | <code>sudo nano /etc/passwd</code> | ||
+ | |||
+ | Find the line that starts with <code>stationeers:x:</code> (it's most likely the last line in the file). Replace the path at the end of this line (probably says <code>/bin/bash</code>) with <code>/sbin/nologin</code>. | ||
== Installing SteamCmd == | == Installing SteamCmd == |