How to Become an Admin on a Project Zomboid Server
This guide explains how to grant yourself or another player administrator (admin) rights on a Project Zomboid dedicated server. You’ll need access to the server’s console or its configuration files, and you’ll learn both the in-game command and the file-based method. By the end, you’ll be able to manage your server with admin powers, including spawning items, teleporting, and kicking players.
What You’ll Need
- Access to the server console (if you’re the host, this is the window where the server runs; if you rent, your hosting panel provides a console).
- If using the file method, access to the server’s root directory (usually via FTP or your hosting file manager).
- The exact username of the player you want to make admin (must match their in-game name exactly, case-sensitive).
Step-by-Step
- Start the server and wait until it finishes loading and shows the main menu (the line “SERVER STARTED” appears in the console).
- Open the console – the same window or panel where the server runs. If you’re using a hosting service, look for a “Console” or “Remote Console” button in your control panel.
- Type the admin command exactly as follows, replacing
YourUsernamewith the player’s in-game name:setaccesslevel YourUsername admin
Press Enter. The console should respond with something like “User YourUsername has been granted admin.” - Have the player rejoin the server (or reload their save) so the new permission takes effect. They should now see admin options in the chat (type
/helpin-game to see available admin commands). - Alternative method – edit the file: Stop the server completely. Navigate to the server’s root folder and open
servertest.ini(orServerName.iniwhere ServerName is the name you gave the server). - Find the line
AdminPassword=– if it’s blank, set a password. This password is used to authenticate as admin in-game. - Find the line
Mods=(if present) and ignore it. Locate or add the lineAccessLevel=– actually, the correct key isAdminUsername=? Let’s be precise: In theservertest.inifile, look for a section called[Users]or simply add at the end:Admin=YourUsername
But the official method is to use the console command. The file method is less reliable because the format can vary. Stick to the console command. - If you prefer file editing, the actual key is
AdminUsername=in the[ServerOptions]section? No – the correct approach is: in thefile, under [ServerOptions], setAdminUsername=YourUsernameandAdminPassword=YourPassword. Then restart the server. The player with that username will be admin after they join and type/setaccesslevel? Actually, the file method is not officially documented; the console command is the standard. We’ll proceed with the console method as primary. - Verify the admin status by having the player type
/addadmin? No – just have them type/helpand check if admin commands appear. Alternatively, in the console typecheckadmin YourUsernameto see their access level.
Common Mistakes
- Typing the username with wrong capitalization – the command is case-sensitive.
- Using a space in the username – if the username contains a space, enclose it in quotes:
setaccesslevel "John Doe" admin. - Forgetting to restart the server after file edits – changes only apply on restart.
- Confusing the in-game admin command with the console command – the console command is used in the server console, not in the game chat.
- Setting the password but not the username – both are needed for the file method.
Tips
- Use the console command as it takes effect immediately without restart.
- Grant admin only to trusted players – admins can spawn items, teleport, and even delete characters.
- Keep a record of who you made admin, and remove permissions if someone leaves your group.
- If you’re renting a server, check your host’s documentation – some have a web panel that lets you set admins with a click.
- Test the admin powers on a separate test server first if you’re unsure.
Troubleshooting
- Command not recognized: Make sure you’re typing in the server console, not the game chat. Also ensure the server is fully started.
- Player doesn’t get admin after rejoining: They might need to fully exit the game and rejoin, not just reload the save. Also double-check the spelling.
- File method doesn’t work: The ini file format may vary by version. Use the console command instead.
- Admin commands not showing in game: The player might need to type
/setaccesslevel? No – they just type/helpto see commands. If they don’t see admin commands, they aren’t admin. - Can’t find the console: If you’re using a hosting panel, look for a “Console” tab or a button that says “Remote Console” – sometimes it’s under “Tools”.
Frequently Asked Questions
Q: Can I make myself admin if I’m not the server host?
A: Only if the host or an existing admin grants you access via the console. The host has to run the command for you.
Q: Is there a way to make someone admin without them being online?
A: Yes, you can use the console command even if they are offline – it will apply when they next join. The file method also works offline.
Q: What’s the difference between admin and moderator?
A: Admin has full access, including spawning items and teleporting. Moderator has limited powers like kicking and banning but not spawning.
Q: Can I set multiple admins?
A: Yes, just run the command for each username. Each player gets admin individually.
Q: Does the admin password do anything if I use the console command?
A: The password is only used for the file method. The console command grants admin directly without needing a password.
Q: How do I remove admin rights?
A: Use the console command setaccesslevel YourUsername none or removeadmin YourUsername? The correct command is setaccesslevel YourUsername none.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.