How to add yourself as admin on your Factorio server
This article will cover the steps needed to grant admin privileges on your Factorio server.
Step 1: Log into the Game Control Panel and navigate to your Factorio service.
Step 2: Stop your server.
Step 3: Click on Configuration Files, locate server-adminlist.json, and press the Text Editor button.
Step 4: Add each admin's Factorio username (the username they use to authenticate with the Factorio multiplayer service) as a JSON string in a list:
[
"YourFactorioUsername",
"AnotherAdmin"
]
The file must be a valid JSON array of strings.
Step 5: Click Save and start the service.
Verifying admin status in-game:
Once joined, open the in-game console with the ~ key (tilde). Run:
/admins
You should see your username in the response. Admins can use commands like /promote, /demote, /ban, /kick, and the entire /c cheat console (toggleable via /cheat).
Useful admin commands:
| Command | Effect | |
|---|---|---|
/admins |
List current admins | |
/promote PlayerName |
Add admin (also persists to server-adminlist.json) |
|
/demote PlayerName |
Revoke admin | |
/kick PlayerName [reason] |
Kick | |
/ban PlayerName [reason] |
Ban | |
/unban PlayerName |
Unban | |
/whitelist add PlayerName |
Add to whitelist (if whitelist enabled) | |
/players |
List online players | |
/seed |
Display the current map seed | |
/version |
Show server version | |
/save SAVENAME |
Save under the given name | |
/server-save |
Quick save the current game |
The cheat console (/c <lua>) lets you run arbitrary Lua commands, including game.player.insert{name="iron-plate", count=1000} to give items. Cheating disables achievements for the save.
Security: Anyone in server-adminlist.json has full administrative control, including unrestricted cheats. Treat the list with care.