Opendchub Administration

Aus Weimarnetz Wiki
Zur Navigation springen Zur Suche springen

Administration des Hub´s via telnet:

telnet <IP wo der Hub läuft> 53696
$adminpass <passwort>| 

jetzt ist man eingeloggt und kann Befehle eintippen (immer mit "$" beginnend und "|" endend)

Begrüssungstext ändern

  • in das Verzeichnis:
cd /root/.opendchub     wechseln
vi motd                 öffnen

und Begrüssungstext ändern

Skripte hinzufügen



$adminpass 'password'|
Sends the administrations password. This has to be sent before any other
commands. This command does NOT work in chat for security reasons. A
user must be registered as an Op Admin before the user can use the
admin commands in chat.

$set 'variable' 'value'|
Sets a value in the config file. The config file is located in the
.opendchub directory, which is located in the root of your home directory.
The variables are explained in the config file. The program must be run
once first to create the config file.
The motd is placed in a file of it's own. To change the motd, use "!set motd".

$ban 'ip or hostname' 'time'|
Adds an entry to the banlist. The entry can be a subnet or a whole ip
address or a hostname. Hostnames may contain '*' as wildcard. The time is the
duration of the ban and can be 0 for permanent or a value followed by a
period (e.g. 10m). Accepted periods are s(seconds), m(minutes, h(hours) and

$nickban 'nick' 'time'|
Adds an entry to the nick banlist. The time is the same as for the ban command

$allow 'ip or hostname'|
Adds an entry to the allowlist. This file works like the opposite of
banlist, i.e, the entries in this file are allowed to the hub.

Displays the banlist file.

Displays the nick banlist file.

Displays the allowlist file.

$unban 'ip or hostname'|
Removes an entry from the banlist file. The hostname/IP entry in the file must
be an exact match of the one provided in the command.

$unnickban 'nick'|
Removes an entry from the nick banlist file. The nick entry in the file must
be an exact match of the one provided in the command.

$unallow 'ip or hostname'|
Removes an entry from the allowlist file.

$addreguser 'nickname' 'password' 'op'|
Adds a user the the regfile. if 'op' is 1, the user is op, which allows user
to use the dedicated op commands, for example $Kick. If 'op' is 2, the user
also gets priviledges to administer the hub through the chat. If 'op is 0,
the user is an ordinary registered user with no special priviledges.

Displays the reglist.

$removereguser 'nickname'|
Removes a user from the reglist.

$addlinkedhub 'hubip' 'port'|
Adds a hub to the linked hub list. The hub is linked with the hubs on this
list, wich makes it possible for users to search for file and connect to
users on other hubs. 'port' is the port on which the linked hub is run.

Displays the linked hubs file.

$removelinkedhub 'hubip' 'port'|
Removes a hub from the linked hub list.

Displays the config file.

Displays the motd file.

Terminates the program. Has the same effect as sending term signal to the
process, which also makes the hub shutting down cleanly.

Disconnects from the hub.

$redirectall 'ip or hostname'|
Redirects all users to 'ip or hostname'.

$gethost 'nick'|
Displays the hostname of user with nickname 'nick'.

$getip 'nick'|
Displays the ip of user with nickname 'nick'.

$massmessage 'message'|
Sends a private message to all logged in users.

Reloads the scripts in the script directory.

$addperm 'nick' 'permission'|
Adds the permission (one of BAN_ALLOW, USER_INFO, MASSMESSAGE, USER_ADMIN)
to the operator with nickname 'nick'.

$removeperm 'nick' 'permission'|
Removes the permission (one of BAN_ALLOW, USER_INFO, MASSMESSAGE, USER_ADMIN)
from the operator with nickname 'nick'.

$showperms 'nick'|
currently granted to the operator with nickname 'nick'.

Displays all available admin commands.

Returns a list of all users connected to the hub in the form:
$NickList 'user1'$$'user2'$$...'usern'$$||OpList 'op1'$$'op2'$$...'opn'||

$GetINFO 'nickname' Administrator|
Displays the user info of user with nick 'nickname'.

$To: 'nickname' From: Administrator $'message string'|
Sends a private message from administrator to user.

<Administrator> 'chat string'|
This is the only command that does not start with the '$'. It sends a
message to the public chat. Note that the nickname of the administrator is
"Administrator". It can't be changed.

$Kick 'nickname'|
Kicks the user with nick 'nickname'

$OpForceMove $Who:'nick':$Where:'host or ip'$Msg:'message'|
Redirects user with 'nick' to the hostname or ip and displays the
message 'message' to the redirected user. This is the only admin command
that is case sensitive.