Rust Guides

How to add a password to your Rust server

Ever wondered how you can protect your server with a password? Here's how it's done!

Navigation:

Links Which May Also Interest You


Installation process

First, you need to install the plugin, you can download the files right here. Next up, take Authentication.cs and put it in the 'plugins' folder so that it can be loaded on to the server.

Next up, we want to go to the f1 console or the webRcon utility. In there we type 'auth password [new password]' Note: Make sure not to include the example brackets in your commands!

Configuration

So now that the plugin has been successfully set up and installed, it's time to do some configuration. The file can be found under oxide/config and is called Authentication.json. Open that file.

Inside of Authentication.json, you should see this:

{
  "ENABLED": true,
  "PASSWORD": "changeme",
  "PREVENT_CHAT": true,
  "PREVENT_CHAT_PASSWORD": true,
  "RETRIES": 0,
  "TIMEOUT": 30
}

In here you change the settings of your server.

ENABLED
Enable/disable this plugin. Takes value true, or false
PASSWORD
The configured password, this value needs to be surrounded in quotations and can be set to anything
PREVENT_CHAT_PASSWORD
Prevents users in the server from telling newly joined users the password by replacing it with *'s. Takes value true, or false
RETRIES
The number of times a player can guess the password before being kicked from the game
TIMEOUT
The amount of time a user has to enter the correct password before getting kicked

Now after this is done, restart the server, and you're done with installation and configuration.

Special Offer for new customers only

We noticed you stumbled upon our Knowledge Base from a search engine.

The guide you're reading right now was created to help our customers of our Rust hosting service. We decided to share them for free!

If your current game server provider, is unable or unwilling to go the extra mile, switch to Gameserverkings.

We utilize the best hardware, the fastest connections and a very user friendly control panel.

Switching is easy! Sign up today, we'll transfer your files and handle everything else.

Click below, and receive a lifetime 5% discount on your service.