October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk12 min

L4D2 Admin Commands: How to Become Admin on Your Server

Add yourself as an L4D2 server admin with SourceMod: find your SteamID using status, edit admins_simple.ini or admins.cfg, reload admins, understand the z flag and configure RCON safely.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To become an administrator on a Left 4 Dead 2 dedicated server, install MetaMod:Source and SourceMod, copy your SteamID from the status command, add that ID to SourceMod’s admin configuration, then reload the admin cache or restart the server. The shortest entry is "STEAM_x:x:xxxxxxxx" "99:z" in left4dead2/addons/sourcemod/configs/admins_simple.ini.

Use the z flag only for a trusted owner: it is SourceMod’s root access and grants every permission. For moderators, assign individual flags such as kick, ban or map change instead. RCON is a separate, broader remote-console method configured with rcon_password; it does not replace SourceMod’s per-command permissions.

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What “becoming admin” means in L4D2

Left 4 Dead 2 does not turn a player into a permanent administrator merely because that player is hosting a lobby. Administration on a dedicated server is supplied by a server-side permission system. SourceMod identifies an administrator by SteamID, matches that identity against an account file, and exposes commands according to the flags assigned to the account.

There are two practical control paths:

  • SourceMod: a granular in-game administration layer. It can expose a menu and individual commands such as sm_kick, sm_map, sm_cvar and sm_rcon.
  • RCON: a remote console connection protected by one server password. It gives console-level control rather than a separate permission for every SourceMod command.

For a public server, SourceMod is usually the safer day-to-day choice because each account can receive only the abilities it needs. Keep RCON and SourceMod root access for the owner or a very small number of trusted operators.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Choose SourceMod, RCON, or both

Administration method Setup effort Permission granularity Auditability Remote access Best fit
SourceMod Install MetaMod:Source and SourceMod, then create an account entry Individual flags can allow only generic access, kicking, banning, map changes, cvars, RCON or cheats Actions are tied to SteamID-based accounts; SourceMod command logging depends on the server’s logging configuration In-game; sm_rcon is available to users with the RCON flag Regular moderation and public servers
RCON Set rcon_password and connect with an RCON client Broad console authority for anyone who knows the password A shared password makes individual attribution harder than separate SourceMod accounts Yes, from a remote RCON client Owner-level maintenance and recovery
Both Configure each system independently SourceMod handles routine roles; RCON remains an emergency or maintenance channel Separate account and password controls let you limit normal access Yes Owners who need moderation plus remote administration

Installing both does not make every SourceMod administrator an RCON administrator. The m flag is required for SourceMod’s sm_rcon command, while a remote RCON client requires the server’s RCON password.

Prerequisites before editing permissions

  • A dedicated L4D2 server that you operate or are explicitly authorized to moderate.
  • File access to the server’s left4dead2 directory and permission to restart it.
  • MetaMod:Source and SourceMod installed in the server’s left4dead2/addons directory.
  • Your own SteamID, obtained from the server with status.
  • A maintenance window or a way to reload admins after changing the files.

Do not apply these instructions to a server you do not control. Root permissions and RCON can affect every connected player and can change or stop the server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install MetaMod:Source and SourceMod

SourceMod runs through MetaMod:Source, so install the two components in that order. Download the current packages from their official project distribution, preserve the package directory structure, and upload the contents into the server’s L4D2 folder rather than nesting the package in an extra directory.

  1. Stop the dedicated server before copying files.
  2. Install MetaMod:Source so its files are under left4dead2/addons/metamod and its loader configuration is in the expected addons location.
  3. Install SourceMod so the left4dead2/addons/sourcemod tree, plugins and configuration files are present.
  4. Start the server once. Watch the startup console for MetaMod and SourceMod load messages; a missing or misplaced loader normally appears here before any admin configuration can work.
  5. Stop the server again if you need to edit files safely, or leave it running and plan to use sm_reloadadmins after the edit.

The exact upload method differs between a self-managed machine and a managed host, but the relative path is the same. If SourceMod does not load, fix that installation problem first; an account entry cannot work when the plugin framework is absent.

Find the SteamID that SourceMod will recognize

Join the server with the Steam account that should receive access. Open the in-game developer console if enabled, or use the dedicated server console, and run:

status

The output lists connected players and their SteamIDs. Copy the complete identifier exactly, including the STEAM_ prefix, underscores and colons. A typical identity has the form STEAM_x:x:xxxxxxxx; the letters and digits in your output are the values that belong in the account file.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
  • Use the SteamID printed for your current account, not a display name. Names can change and are not a reliable identity.
  • Do not remove leading characters or convert the value by hand. SourceMod must match the authentication string it receives.
  • If several people are connected, verify the player name beside the ID before copying it.

If status does not show a SteamID, confirm that you are connected to the dedicated server and not playing an offline or lobby-created local session. The account entry can be added only after you have a stable identity to match.

Quick setup with admins_simple.ini

For one or a few straightforward accounts, edit:

left4dead2/addons/sourcemod/configs/admins_simple.ini

Add one line per administrator. Replace the example ID with the value returned by status:

"STEAM_x:x:xxxxxxxx" "99:z"

The first quoted value is the authentication identity. The second contains an immunity level and flags separated by a colon. In this example, 99 is the immunity number and z is SourceMod root access.

Use a narrower flag whenever possible

Replace z with the least powerful combination that performs the job. For example, a moderator who only needs to remove disruptive players could use the kick flag:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
"STEAM_x:x:xxxxxxxx" "50:c"

An operator who needs to kick, ban and change maps could use:

"STEAM_x:x:xxxxxxxx" "50:cdg"

The numeric immunity value is not a permission level. It determines how an administrator interacts with other admins when commands honor immunity; choose a consistent value for your staff policy and keep the value separate from the capability letters.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Save the file without breaking its syntax

  • Keep both values inside straight double quotation marks.
  • Keep the colon between immunity and flags.
  • Put each account on its own line.
  • Do not add a comma, semicolon or trailing comment to the account line.
  • Back up the file before making a large change.

Use admins.cfg for named, detailed accounts

The full configuration file is useful when you have several administrators, want readable names, or need separate immunity and flag settings. It is located at:

left4dead2/addons/sourcemod/configs/admins.cfg

An account entry uses the Admins section, the auth method steam, the SteamID as identity, and a string of flags:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
"Admins"
{
    "Server owner"
    {
        "auth"      "steam"
        "identity"  "STEAM_x:x:xxxxxxxx"
        "flags"     "z"
        "immunity"  "99"
    }

    "Moderator"
    {
        "auth"      "steam"
        "identity"  "STEAM_y:y:yyyyyyyy"
        "flags"     "cdg"
        "immunity"  "50"
    }
}

The labels “Server owner” and “Moderator” are names for your administration list; SourceMod still authenticates each person by the SteamID in identity. Keep braces balanced and quote every key and value. A malformed block can prevent the file from loading, so restore the last known-good backup if SourceMod reports a parse error.

Reload the account list and verify access

After saving either file, reload the admin cache from the server console or through an existing administrative route:

sm_reloadadmins

A full server restart also reloads the files. Reloading is faster and avoids disconnecting players, but a restart is useful when you have also installed or updated MetaMod, SourceMod or plugins.

  1. Run sm_reloadadmins and check the console for a successful reload or a syntax error.
  2. Reconnect to the server if your current session was authenticated before the account was added.
  3. Run sm_admin. A working SourceMod account opens the administration menu.
  4. Test only a command your assigned flags should allow, such as a harmless map or cvar operation on a private server.

If sm_admin says the command is unknown, the issue is not your SteamID entry: SourceMod or its base plugins have not loaded. If the menu opens but a command is denied, compare the command’s required flag with your account entry.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

SourceMod flags you will actually use

Flag Capability Typical use
b Generic administration Baseline access for functions that require a generic admin permission
c Kick Remove a player with sm_kick
d Ban Apply bans with the relevant SourceMod ban command
g Change map Use sm_map to change the current map
h Change cvars Use sm_cvar for server console variables
m RCON Use SourceMod’s sm_rcon command
n Cheats Change sv_cheats and use cheat commands
z Root All SourceMod permissions by default

SourceMod’s configuration describes root as “a magic access flag that grants all permissions by default.” Treat that as unrestricted server control, not as a convenient default for every staff member. The API describes the RCON permission as “Use RCON” and the cheats permission as “Change sv_cheats and use its commands.”

Flags can be combined without spaces, as in cdg. If a plugin uses a custom permission, consult that plugin’s documentation before assuming that a standard flag will cover it.

Core commands after you are an admin

Command What it does Permission or caution
sm_admin Opens the SourceMod admin menu Requires an authenticated SourceMod account with menu access
sm_kick <player> [reason] Kicks a connected player Kick flag c; use a clear reason on a public server
sm_map <map> Changes the current map Change-map flag g; warn players before disrupting a round
sm_cvar <cvar> [value] Reads or changes a server console variable Cvar flag h; changing gameplay variables affects everyone
sm_rcon <command> Runs a server-console command through SourceMod RCON flag m; this is broad authority
status Lists connected players and SteamIDs Useful for identifying an account; it is not itself an admin command
sm_reloadadmins Reloads SourceMod account files Run after editing admins_simple.ini or admins.cfg

Command names and access checks come from SourceMod’s base command set. A plugin can add commands with different names or requirements, so a missing command may indicate that its plugin is not installed rather than an authentication failure.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to configure RCON instead

RCON is useful when you need to administer the server without joining the game. It is configured in the dedicated server configuration, normally left4dead2/cfg/server.cfg. Add a strong, unique password:

rcon_password "use-a-long-unique-secret"
  1. Stop the server or edit server.cfg during a maintenance window.
  2. Set rcon_password to a secret that is not used for Steam, hosting, email or any other service.
  3. Save the file and restart the server, or otherwise ensure the configuration is loaded before testing.
  4. In a Source RCON client, enter the server address, query/game port and the exact RCON password.
  5. Run a low-impact command such as status to confirm that the connection is controlling the intended server.

Anyone who obtains the RCON password can issue console commands with the authority of the server owner. Do not post it in chat, store it in a shared screenshot or place it in a public configuration repository. If it leaks, change the password and restart or reload the configuration so the old credential is no longer accepted.

SourceMod’s sm_rcon is not a second password. It is an in-game wrapper around console commands, and only accounts with the m flag should receive it. Give ordinary moderators specific flags instead of m or z.

Why sv_cheats keeps turning off

sv_cheats is server-wide. When enabled, every connected client can use the cheat commands permitted by the game; it is not a private switch that affects only the administrator who typed it. SourceMod assigns cheat control to flag n.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Several server contexts can make a cheat test appear inconsistent:

  • Lobby reservation: the command reference notes that lobby reservation can reset sv_cheats. A lobby handoff or reservation event can therefore undo a value you set manually.
  • Local sessions: the Left 4 Dead Wiki reports that lobby-created local sessions disable cheats. A local listen session is not a reliable environment for testing dedicated-server permissions.
  • Wrong authority: a user without flag n may be authenticated but still be denied when changing sv_cheats.

For repeatable testing, use a private dedicated server, confirm that SourceMod has loaded, assign the test account the n flag (or temporarily use root), and run the command from the server context. Remove the flag afterward if the account does not need cheat control during normal play.

Troubleshoot the common failure points

“You do not have access to this command”

  • Run status again and compare the complete SteamID with the value in the file.
  • Check that the account uses auth steam in admins.cfg, or the two quoted fields in admins_simple.ini.
  • Verify that the required flag is present: c for kick, d for ban, g for map change, h for cvars, m for SourceMod RCON, and n for cheats.
  • Run sm_reloadadmins, then reconnect and test again.

sm_admin is an unknown command

SourceMod’s base plugin set is not loaded, or the installation is in the wrong directory. Inspect the startup console for MetaMod and SourceMod load errors and confirm that the files are under left4dead2/addons, not inside an extra package folder.

The file change has no effect

Confirm that you edited the server’s active left4dead2/addons/sourcemod/configs directory, not a client installation or a different server instance. Check quotation marks, braces and the spelling of identity. Reload admins or restart the correct instance after saving.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

One malformed entry breaks several administrators

Restore the last backup, then add entries one at a time. In admins.cfg, every opening brace needs a matching closing brace, and each administrator must be inside the top-level Admins block. A syntax error can prevent the complete file from being parsed.

RCON will not connect

  • Make sure rcon_password is set in the configuration used by the running server.
  • Check the address and port in the RCON client; connecting to another server with the same password can look like a permission problem.
  • Restart after changing the password so the active process has loaded it.
  • Check firewall and hosting-panel rules if the client cannot reach the server at all.

sv_cheats 1 immediately returns to zero

Test on a private dedicated server rather than a lobby-created local session, and account for lobby reservation resetting the variable. If the context is correct, check that the executing account has flag n or the intended controlled test account is using root only temporarily.

Secure a public server after setup

  • Apply least privilege: give a moderator only the flags needed for moderation. Reserve z for the owner or an equivalent trusted role.
  • Separate identities: create one SteamID entry per person instead of sharing an account or password. This lets you remove one operator without changing everyone else’s access.
  • Protect RCON: use a unique secret, keep it out of chat and public files, and rotate it immediately after exposure.
  • Limit cheat access: flag n changes a server-wide setting and affects every connected client.
  • Back up configuration: preserve known-good copies of admins_simple.ini, admins.cfg and server.cfg before edits.
  • Test privately: verify new permissions on an empty or private server before using map changes, cvar changes or cheat commands during a public session.
  • Review staff regularly: remove SteamIDs for former moderators and change RCON credentials when the trusted group changes.

A repeatable admin-setup checklist

  1. Install MetaMod:Source and SourceMod under the dedicated server’s left4dead2/addons directory.
  2. Start the server and verify both frameworks load in the console.
  3. Join with the account that needs access and run status.
  4. Copy that account’s complete SteamID.
  5. Choose admins_simple.ini for a quick entry or admins.cfg for named, detailed accounts.
  6. Assign the smallest useful flag set; use z only for unrestricted owners.
  7. Save a syntactically valid file and run sm_reloadadmins, or restart the server.
  8. Reconnect and test sm_admin plus one command appropriate to the assigned flags.
  9. If remote control is required, set a unique rcon_password separately and test it from an RCON client.
  10. Document who has root, RCON and cheat access, then remove permissions that are no longer needed.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.