Back to all guides
Terraria Guideadminpermissionscommands

How to Set Up Admin Permissions

Learn how to become an admin and execute console commands on your Terraria server.

# How to Set Up Admin Permissions To manage your Terraria server, kick players, or save the world manually, you need to set up **Admin Permissions**. Terraria uses an in-game authorization system or console passwords to grant privileges. ## Method 1: Using the In-Game /auth command When the server starts for the first time, a random **setup code** is printed in the server console. - Check your server console logs inside the [Lobby Maker Panel](/my-game-servers) to retrieve the code. - Join the server with your character. - Open the chat and type the following: ``` /auth <setup-code> ``` - If correct, you will be promoted to admin. ## Method 2: Defining Admin Users in the config You can configure permanent admin accounts by editing the user lists. > [!WARNING] > Never share your server's setup code or auth credentials with anyone. Admin accounts have full control over the world, including the ability to delete items and trigger hardmode. ## Useful Admin Commands Here are some common commands you can now run directly in-game: - `/kick <player>` - Kicks a player from the server. - `/ban <player>` - Bans a player from the server. - `/save` - Forces an immediate world save. - `/exit` - Saves the world and stops the server.