ThisCalculator

Everyday

How to Become an Admin on a Project Zomboid Server

Updated · Standard formula, shown below

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

  1. Start the server and wait until it finishes loading and shows the main menu (the line “SERVER STARTED” appears in the console).
  2. 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.
  3. Type the admin command exactly as follows, replacing YourUsername with the player’s in-game name:
    setaccesslevel YourUsername admin
    Press Enter. The console should respond with something like “User YourUsername has been granted admin.”
  4. 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 /help in-game to see available admin commands).
  5. Alternative method – edit the file: Stop the server completely. Navigate to the server’s root folder and open servertest.ini (or ServerName.ini where ServerName is the name you gave the server).
  6. Find the line AdminPassword= – if it’s blank, set a password. This password is used to authenticate as admin in-game.
  7. Find the line Mods= (if present) and ignore it. Locate or add the line AccessLevel= – actually, the correct key is AdminUsername=? Let’s be precise: In the servertest.ini file, 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.
  8. If you prefer file editing, the actual key is AdminUsername= in the [ServerOptions] section? No – the correct approach is: in the file, under [ServerOptions], set AdminUsername=YourUsername and AdminPassword=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.
  9. Verify the admin status by having the player type /addadmin? No – just have them type /help and check if admin commands appear. Alternatively, in the console type checkadmin YourUsername to 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 /help to 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.