# How to Add Admins & Use Commands on Your Rust Server (/docs/rust/admin-setup)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Auth Levels [#auth-levels]

| Level | Role      | Access                                             |
| :---: | --------- | -------------------------------------------------- |
|   2   | Owner     | Full control — all commands, server settings       |
|   1   | Moderator | Most admin commands, cannot change server settings |

Adding Admins [#adding-admins]

Via Console [#via-console]

```
ownerid 76561198012345678 "PlayerName" "reason"
moderatorid 76561198087654321 "ModName" "reason"
writecfg
```

Via users.cfg [#via-userscfg]

In `server/[identity]/cfg/users.cfg`:

```
ownerid 76561198012345678 "AdminName" ""
moderatorid 76561198087654321 "ModName" ""
```

Players must reconnect after auth changes.

Key Admin Commands [#key-admin-commands]

Player Management [#player-management]

| Command                    | Description                            |
| -------------------------- | -------------------------------------- |
| `ban <player> "reason"`    | Ban                                    |
| `banid <steamid> "reason"` | Ban by ID                              |
| `unban <steamid>`          | Unban                                  |
| `kick <player> "reason"`   | Kick                                   |
| `banlist` / `banlistex`    | View bans                              |
| `users`                    | List connected players                 |
| `status`                   | Server status (FPS, entities, players) |
| `say "message"`            | Broadcast to all                       |

Movement & Cheats (In-Game F1) [#movement--cheats-in-game-f1]

| Command                | Description          |
| ---------------------- | -------------------- |
| `noclip`               | Toggle fly mode      |
| `god true/false`       | Toggle invincibility |
| `teleport <player>`    | Teleport to player   |
| `teleport2me <player>` | Bring player to you  |
| `teleportpos <x y z>`  | Teleport to coords   |

Items & Entities [#items--entities]

| Command                                     | Description            |
| ------------------------------------------- | ---------------------- |
| `inventory.give <item> <amount>`            | Give yourself items    |
| `inventory.giveto <player> <item> <amount>` | Give to player         |
| `spawn <entity>`                            | Spawn entity at cursor |

Server [#server]

| Command                | Description         |
| ---------------------- | ------------------- |
| `server.save`          | Force save          |
| `server.stop` / `quit` | Stop server         |
| `global.restart`       | Restart             |
| `writecfg`             | Save config changes |

Related Guides [#related-guides]

* [Server Configuration](/docs/rust/server-config)
* [RCON Setup](/docs/rust/rcon-setup)
* [Oxide Plugins](/docs/rust/oxide-plugins)
