Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Rust Server CFG: Find & Edit Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to locate and edit the server.cfg file on a Rust server, which controls key settings like server name, description, max players, and admin passwords. You'll need file access to your server's installation directory—either through a hosting control panel (like FTP or a file manager) or directly on the machine where the server runs.

What You'll Need

  • Access to your server's file system (FTP credentials, hosting panel file manager, or local file explorer if self-hosting).
  • A text editor that saves plain text (Notepad, Visual Studio Code, or Sublime Text—avoid Word).
  • Knowledge of your server's installation path (usually something like /rust/server/ or C:\rustserver\).

Step-by-Step

  1. Locate the server folder. The server.cfg file lives in the server/ subdirectory of your Rust server installation. If you use a hosting panel, open the file manager and navigate to server/. If you use FTP, connect with an FTP client (FileZilla, WinSCP) and go to the same folder.
  2. Find the file. Look for server.cfg in that folder. If it doesn't exist, you can create it—the server will read it on startup if it's present. Some hosts may use a different name like serverauto.cfg, but server.cfg is the standard.
  3. Download the file (if remote). If you're using FTP, right-click the file and select "Download" to edit it locally. If you're using a hosting panel's file manager, there's usually an edit button that opens a text editor directly.
  4. Open in a plain text editor. Never use a word processor like Microsoft Word—it adds formatting that breaks the file. Use Notepad (Windows), TextEdit in plain text mode (Mac), or a code editor.
  5. Edit the settings. The file contains lines like server.name "My Server" or server.maxplayers 100. Change the values inside the quotes or after the space. For example, to rename your server, edit the line to server.name "My Awesome Server".
  6. Add new commands if needed. You can add lines for settings that aren't there, like server.description "Welcome to my server" or server.identity "my_server_id". Each command goes on its own line.
  7. Save the file. Save it as server.cfg with UTF-8 encoding (most editors default to this). Make sure the file extension is .cfg, not .cfg.txt.
  8. Upload the file back (if remote). If you downloaded it, upload it back to the same folder, overwriting the old one. If you edited in the panel's editor, it saves automatically.
  9. Restart the server. The changes only take effect after a restart. Use your hosting panel's restart button or run the restart command in the console.
  10. Verify the changes. After the server restarts, check the console output or join the server to see if the name, description, or other settings applied correctly.

Common Mistakes

  • Editing the wrong file. Some hosts have multiple config files; make sure you're editing server.cfg in the server/ folder, not the main config in the root.
  • Using a rich text editor. Word or Google Docs can add invisible characters that cause syntax errors.
  • Forgetting to restart. Changes won't apply until the server restarts.
  • Incorrect syntax. Missing quotes around text values or extra spaces can break the line. For example, server.name My Server (without quotes) will only read "My".
  • Overwriting without backup. If you make a mistake, you might need to revert. Always back up the original file first.

Tips

  • Back up before editing. Copy server.cfg to server.cfg.bak so you can restore if something goes wrong.
  • Use comments. Lines starting with // are ignored by the server. Use them to organize your config, like // Admin settings.
  • Test one change at a time. If you change multiple things and something breaks, it's harder to find the culprit.
  • Check the console on startup. The server logs any config errors there; it will tell you which line failed.
  • Keep a template. Save a clean copy of a working config to reuse for other servers.

Troubleshooting

Server won't start after editing. Check the console for error messages. The most common cause is a missing quote or an invalid command. Restore your backup and try again with smaller changes.

Changes don't apply. Make sure you edited the correct server.cfg and that the server fully restarted (not just a map wipe). Some hosts cache files; try a full stop and start.

File is read-only. On Linux, check permissions with chmod 644 server.cfg or set write permissions in your hosting panel.

Can't find the file. If it's not in server/, check the root of the server folder. Some hosts use a different path; contact your host's support or look for a cfg folder.

Encoding issues. If you see strange characters, the file may have been saved with the wrong encoding. Re-save as UTF-8 without BOM.

Frequently Asked Questions

Q: What is the default location of server.cfg?
A: It's in the server/ subdirectory of your Rust server installation. If you use a hosting panel, it's usually accessible via the file manager.

Q: Can I edit server.cfg while the server is running?
A: Yes, you can edit the file, but changes won't take effect until the server restarts. Some settings can be changed via console commands without a restart, but editing the file requires a restart.

Q: What is the difference between server.cfg and serverauto.cfg?
A: server.cfg is the main config file. serverauto.cfg is used by some hosts for auto-generated settings; editing server.cfg is usually the right choice.

Q: How do I set an admin password in server.cfg?
A: Add the line server.secure true (optional) and server.password "yourpassword" to set a server password. For admin (RCON) password, use rcon.password "yourrconpass".

Q: Can I use comments in server.cfg?
A: Yes, lines starting with // are ignored. Use them to annotate your config.

Q: What if I delete server.cfg?
A: The server will generate a new one with default settings on next startup. Your custom settings will be lost, so keep a backup.