> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Add an Admin on Your 7 Days to Die Server

> How to add an admin on a 7 Days to Die server: run admin add with level 0 in the panel console, or edit serveradmin.xml in .local/share/7DaysToDie/Saves.

To add an admin on a FREAKHOSTING 7 Days to Die server, join the server with that player, open the panel **Console** and type `admin add <name> 0`, where `0` is the highest permission level. The game saves admins in `serveradmin.xml` in `.local/share/7DaysToDie/Saves/`, which you can also edit by hand with a SteamID64.

| Fact | Value |
| - | - |
| Command | `admin add <name / entity id / player id> <level>` |
| Highest level | 0 (full admin) |
| Default for players | 1000 (no rights) |
| File | `.local/share/7DaysToDie/Saves/serveradmin.xml` |
| Panel page | No admin page; use **Console** or **Files** |

## How to add an admin with a console command

**1. Join the server**

The player who should become admin joins the server.

**2. Find the player**

In the panel [Console](https://help.freakhosting.com/portals/game-panel/how-to-use-the-server-console.md), type `lpi` (list player IDs). It shows each online player's name and IDs.

**3. Add the admin**

Type the command with the player's name or entity ID and a level:

```text theme={null}
admin add <name / entity id> <level>
```

Example: `admin add Alex 0`

**4. Check it**

The player can now open the in-game console with **F1** and use admin commands. The admin is stored in `serveradmin.xml` and stays after restarts.

To remove an admin, type `admin remove <name / entity id>`.

## How to add an admin in serveradmin.xml

Use this when the player is offline. You need their SteamID64 (17 digits, starting with 7656).

**1. Stop the server**

[Stop the server](https://help.freakhosting.com/portals/game-panel/how-to-start-stop-and-restart-your-game-server.md) so your edit isn't lost.

**2. Open the file**

In [Files](https://help.freakhosting.com/portals/game-panel/how-to-use-the-file-manager.md), open `.local/share/7DaysToDie/Saves/serveradmin.xml`. Open `.local`, then `share`, `7DaysToDie` and `Saves`.

**3. Add a user line**

Inside the `<users>` section, outside any `<!-- -->` comment, add:

```xml theme={null}
<user platform="Steam" userid="76561198000000000" name="Alex" permission_level="0" />
```

The `name` is only a note for you.

**4. Save and start**

Save the file and start the server.

## Permission levels

| Level | Meaning |
| - | - |
| 0 | Full admin, can use every command |
| 1 to 999 | Moderator levels you define; a player can use commands set to their level or higher |
| 1000 | Normal player (the default) |

The **Admin slots** and **Reserved slots** settings on **Game settings** use these levels too. **Permission level for reserved slots** defaults to 100.

## Whitelist and bans

| Task | Command |
| - | - |
| Whitelist a player | `whitelist add <name / entity id>` |
| Remove from whitelist | `whitelist remove <name / entity id>` |
| Ban a player | `ban add <name / entity id> <duration> <unit> [reason]`, for example `ban add Alex 7 days griefing` |
| Lift a ban | `ban remove <name / entity id>` |

Once the whitelist has an entry, only whitelisted players and admins can join.

## Frequently asked questions

### Where is serveradmin.xml on a 7 Days to Die server?

In `.local/share/7DaysToDie/Saves/`, next to the world save folders. It is not in the server root.

### Why can't I use admin commands after adding myself?

Check that your line isn't inside a `<!-- -->` comment and that you used your SteamID64. With the command, use the exact in-game name or the entity ID from `lpi`.

### Does resetting the world remove my admins?

No, as long as you only delete the world save folder. `serveradmin.xml` sits one level above it.

### Do commands in the panel console need admin rights?

No. The panel console runs commands as the server, so every command works there.

## Related guides

> [card] [7 Days to Die server guide](https://help.freakhosting.com/games/7-days-to-die/7-days-to-die-server-hosting-guide.md)
>
> Every 7 Days to Die page in one place.

> [card] [Admin commands](https://help.freakhosting.com/games/7-days-to-die/admin-commands-for-7-days-to-die.md)
>
> What admins can run.

> [card] [Telnet console](https://help.freakhosting.com/games/7-days-to-die/enabling-telnet-for-remote-admin.md)
>
> The panel console explained.

> [card] [Reset your world](https://help.freakhosting.com/games/7-days-to-die/how-to-reset-your-7-days-to-die-world.md)
>
> Keep admins when you reset.

> [card] [Sub-users](https://help.freakhosting.com/portals/game-panel/how-to-manage-sub-users.md)
>
> Give panel access to co-owners.

***

> [!NOTE]
>
> **Tested by the FREAKHOSTING team** on our Game Panel on 31 October 2026 (7 Days to Die V3.4.0 b9); commands checked against the official [7 Days to Die Wiki command list](https://7daystodie.wiki.gg/wiki/Command_Console). Steps may differ slightly if the game changes.

> [!NOTE]
>
> ### Need Extra Help?
>
> If you encounter any issues, our support team is ready to assist:
>
> * **Live Chat:** Quick assistance via our website.
> * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
> * **Discord:** [Join our Community](https://discord.gg/freakhosting)
> * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)

> [!TIP]
>
> ### Save on Your Hosting
>
> Ready to upgrade your hosting? Use code **KB20** at checkout for **20% off** your first order!

***

**Last Updated:** October 2026


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.