M00's Guide to getting Access to your server.
Guide to getting access to your server.
by M00 version 1.3
Attention: This guide was made for Counter-Strike admins. The parts that you need to change to fit your mod are labeled in TEAL.
This guide is a comprehensive look at solving one of the greatest woes of newer server admins.
The dreaded problems of:
1. [ADMIN] That name is reserved on this server.
2. You do not have access to this command.
3. Unknown command: admin_*****
If you follow this guide completely, your problem will be solved.
If not, then you take your fate into your own hands.
May God be with you.
[Legend of colors:]
RED is for file names.
BLUE is for your password.
GREEN is for important things.
PURPLE is for examples.
TEAL is for mod-dependent changes.
NOTE: If you are using a different mod, (tfc, dod, etc...) then replace cstrike with your mod's folder.
Stuff that you need to know:
- When I make reference to these files:server.cfg and users.ini
Those are the files on your server, in the cstrike directory.
(C:\HLServer\cstrike or C:\SIERRA\Half-Life\cstrike)
When I make reference to this file:config.cfg
That is the file on your own computer, in the cstrike directory.
(C:\SIERRA\Half-Life\cstrike or C:\SIERRA\Counter-Strike\cstrike)
Disregard anything that anyone has ever told you about setting up passwords.
This way will work. I promise. If it doesn't, then you didn't read carefully enough. If you have some other question, feel free to post it on the forums.
When I make reference to "secretpass" in this guide, you can use whatever password you want to use in its place. No special characters or spaces though. Note: Make sure that the password in the users.ini and your config.cfg match. If you have multiple users (more than one line) in the users.ini, make sure that each admin has his/her own personal config.cfg set up to match his/her password. Between you and me, as of right now, with only using WONID's the passwords don't even have to be completely secure. I can tell you that the password for my WONID is "m00licious". It doesn't matter because you can't use it against me unless you are on my computer. (Thus have my WONID.)
Facts:
- With recent security issues, you should not use names in your users.ini file. Only WONID's.
If you want to use names in your users.ini then you do so at your own risk and without any support from me or this guide.
There is also an issue/bug with this version of adminmod that creates a problem for many users.
When you use traditional methods of access and password archiving, your password times out and you get kicked or are left without access.
This guide bypasses that. It doesn't deal with automatic logging-in, or command-line and autoexec.cfg editing.
This is easier and quicker to set up, and it works!
The Steps:
- You may want to take a picture of this, but I am actually telling you to not read the manual. I know that sounds weird, but it has conflicting information with some of what I am going to tell you. If you want success. I suggest that you follow this guide only. If you have a better grasp of Admin Mod later on and want to change things, that's fine. Just not now.
- This step is going to deal with getting rid of any other forms of access-granting that you may have tried. This manual is very tyrannical, but that is how it has to be. My way or the highway. Now, navigate to your cstrike directory (on your computer, not the server) and locate a file called autoexec.cfg. If there is none. Good. If there is, open it up with a text editor. (Notepad is the one that comes with Windows.) You will need to look for these two lines:
exec adminpass.cfg
setinfo "pw-home" "somepassword"
The "somepassword" could be anything. If one or both of those lines are in there, delete those lines. Yay. Now, I am going to assume that you use some sort of shortcut to open your Half-Life game. If you do not, fine. If you do, go to it and right-click on it and select "Properties" from the drop down menu. There is a section in the properties labeled "Target." It should look similar to this:
C:\SIERRA\Half-Life\hl.exe -console -game cstrike
If there is any mention of "adminpass.cfg" or "setinfo pw-home somepassword" in there, delete those words.
C:\SIERRA\Half-Life\hl.exe -console -game cstrike +exec adminpass.cfg +setinfo pw-home somepassword
(Delete the green stuff! Leave the teal stuff though, or change it to your mod. (tfc, valve, dod, etc...).
- Navigate to your users.ini on your server. Open it with a text-editor. (Notepad.exe will do.) The format for this file is as follows.
WONID:PASSWORD:ACCESS-LEVEL
333999:secretpass:114687
Notice the lack of names. ONLY WONID's. If you already have admins in there with names, get their WONID's and substitute them in instead of their names. You will also notice the access level. That is set up for FULL access. Everything except a reserved name. You can't reserve a name with a WONID, so you need to subtract the level of reserved name. (16384) Thus, the full access with reserved name: 131071 minus reserved slot: 16384 yields 114687. You can calculate other levels here. Just don't forget to take out the reserved name access.
- Navigate to your config.cfg on your computer. (The one that you play Half-Life on.) Open the file with a text-editor. (Notepad.exe) If you are indeed using notepad.exe, Click on the "Edit" menu and select "Find... Ctrl+F". In the box that pops up, type bind "f11". If it finds it. That means that you have something bound to the F11 key already. If it instead pops up a box that says "Cannot find bind "f11"" then be happy. If it did find one, you will have to select a different key to use. Just follow these directions but use a different key instead (PAUSE is a good one to use also. It's well out of the way of normal operation.) Anyway, go to the end of the file and add another line (hit enter). On that new line add the following:
bind "F11" "admin_login secretpass"
Now save and close the file.
- Hooray! You are done. Now to implement all of our hard work. Log onto your server. When you are in the game, hit F11, (or PAUSE or whatever key you used.) Open the console. You should see (in the console) the message:
[ADMIN] Password received.
[ADMIN] Password accepted for user '333999' (The 333999 is an example of a WONID, yours will be different.)
Now you have access to admin commands. Whatever level you set up in your users.ini you now possess. Go ahead and try a sample admin command to get your blood pumping. like:
admin_slay N3wBi3
Now. Go forth and start Llama'ing those newbs.
Note: If you feel the need to respond to this guide, or have any things to say to M00 about it. You can discuss it here.
Last edited on: 02/13/02