Page 1 of 1

enabling dm mode on localhost

Posted: Thu Apr 15, 2004 5:38 pm
by Pyroc
I have installed and can play on a server on localhost (using debian packages). However, when I try the dm command, it says something like "nice try". Can anybody tell me how to set it up so that I can use the dm mode on my server?

Pyroc

Posted: Thu Apr 15, 2004 5:41 pm
by Leaf
You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file

This file contains authorization for dm access.
There are 3 fields, like this: name:password:host
Any field can be ignored if a * is used instead of a normal value - this is the extent of the wildcarding.

Lines that start with # are obviously ignored. This file is read each time someone attempts to become dm, so it can be changed after the server is running and results will apply to the present server that is running.

Example entries:
master:topsecret:*
(name must be master, password is topsecret, allow any host)
*:notelling:*
(only matches password)


As a specific example, add this line:

Pyroc:MyPassword:127.0.0.1



That way, you just need to type:

'dm MyPassword

and Pyroc will have DM access on the server.

This file...

Posted: Wed Nov 10, 2004 4:08 am
by Targetnight
leaf wrote:You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file
Where exactly is this?

Re: This file...

Posted: Wed Nov 10, 2004 6:33 am
by Salathar
Targetnight wrote:
leaf wrote:You need to make some changes to the dm_file

http://crossfire.real-time.com/commands/dm/index.html



HOWTO Enable DM Access

The DM access file is found in share/crossfire/dm_file
Where exactly is this?
If you are wondering how to find dm_file:
On Linux do

Code: Select all

su
updatedb
locate dm_file
On Windows do

Code: Select all

Press F3(find file)
search for file called dm_file
or use the above linux code if you have cygwin installed

Posted: Wed Nov 10, 2004 4:20 pm
by Cowboy
On debian unstable/testing, it should be in /etc/crossfire

If you're running stable, it's in
/usr/share/games/crossfire

Posted: Thu Nov 11, 2004 3:48 am
by Targetnight
Cowboy wrote:On debian unstable/testing, it should be in /etc/crossfire

If you're running stable, it's in
/usr/share/games/crossfire
Er... Can you point out directions to these?
Thanks Salathar.

Posted: Thu Nov 11, 2004 3:59 am
by woo
so your running debian of some variety it would seem.

You will need a text editor, whatever one you like
vi/nano/pico/kwrite/nedit there are tons...

In one of those 2 locations you will see a file named
dm_file

make the change leaf described to get it working, i.e add:

name:password:*

Posted: Sat Nov 20, 2004 6:17 pm
by Targetnight
How do you enable localhost anyhow?

Posted: Sat Nov 20, 2004 8:04 pm
by Salathar
Targetnight wrote:How do you enable localhost anyhow?
Could you be more descriptive? :)

name:password:127.0.0.1 will only allow dms on localhost

Posted: Thu Nov 25, 2004 6:11 pm
by Targetnight
I can't get onto localhost. My firewall allows connections while I try it, (I tweak it to allow them) and I have the maps. But I havent placed the maps into the folder they belong in-Where do they go? I kinda posted this in another topic, also.