How Do I Set A Server Password?

TomperTomper Join Date: 2003-02-10 Member: 13365Members
<div class="IPBDescription">Probably easy as pie but...</div> Hi,

Quick newbie question: how do I set a password for my HLDS server? I've tried to understand how to use the sv_password setting but I can't seem to get it right.

What should I enter, and where? In the commandline? In the server.cfg?

Thankful for your help,

/Tomper

Comments

  • Pebbles-TPFPebbles-TPF Join Date: 2002-11-11 Member: 8237Members, Constellation
    edited August 2003
    use rcon if you do not have adminmod or amx installed.

    in the console type:
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
    rcon_password <your rcon password>
    rcon sv_password "<your server password here>"
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    it can also go into the server.cfg file to create a permanent server password.

    //edit: had confusing password references
  • Lightning_BlueLightning_Blue Sunny Domination Join Date: 2002-12-11 Member: 10647Members, Constellation, Reinforced - Silver
    With adminmod, you can use the following commands:

    To set a password:

    <b>admin_pass <i>password</b></i>

    To remove a password:

    <b>admin_nopass</b>



    <!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif'><!--endemo-->
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    It's just another CVAR, so as Pebbles said, you can set it in your server config, via rcon, or in the server console. To remove the password, specify an empty set of quotes:

    sv_password ""

    You could probably also do it via the command line using +sv_password "foobar" (untested)
Sign In or Register to comment.