Sons of the Forest: Admins & Commands
How to become admin on a Sons of the Forest dedicated server: ownerswhitelist.txt, the in-game admin menu, kick and ban, plus useful start parameters.
Quick answer: Add your SteamID64 to ownerswhitelist.txt and restart the server. You then manage players in the game via pause menu → players (promote admins, kick, ban). According to the developer there are no official chat or console commands such as /kick for the dedicated server.
Step 1: add yourself as owner
ownerswhitelist.txt is in the server's user data folder, next to dedicatedserver.cfg. It is created on the first start.
- Find your SteamID64: in Steam click your name → Account details, or open store.steampowered.com/account. It is the 17-digit number.
- Open the file in the panel's file manager (or via SFTP).
- Add one SteamID per line. Lines starting with
#are comments. - Restart the server.
# Owners of this server
76561198000000000
76561198000000001
Owners have essentially the same rights as the host of a normal co-op game. Only add people you trust.
Step 2: manage players in the game
As owner, open the pause menu in the game and go to the player list. According to the official guide you can:
- promote players to administrators
- demote administrators back to guests
- kick guests
- ban and unban guests
In the same multiplayer menu you also decide whether guests may use the cheat console (setting since Patch 10). The host is never affected.
Are there server commands like /kick or /save?
Endnight's official guide and patch notes list no chat or console commands for the dedicated server and no RCON. Lists of such commands online do not come from the developer. Use the in-game admin menu for management.
What you do without commands:
- Saving: the server autosaves every
SaveIntervalseconds (default 600). Since Patch 08 it also saves immediately before shutting down. So stop the server with Stop in the panel rather than "Kill". - Restart: via Restart in the panel.
- Changing server settings: in
dedicatedserver.cfg, see Server settings explained.
Useful start parameters
According to the guide, the server (SonsOfTheForestDS.exe) accepts these parameters:
-userdatapath "path"– custom folder for config, whitelist and saves.-dedicatedserver.<key> "<value>"– overrides a value fromdedicatedserver.cfg, e.g.-dedicatedserver.MaxPlayers "4".-verboseLogging– more detailed logs for troubleshooting (off by default since Patch 08).
Related guides
Sources: official Endnight dedicated server guide, patch notes 02, 08 and 10 (Steam) · Rent a server: Sons of the Forest server at NexoraHost