3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 05:19:25 +01:00
Document operator capabilities.
This commit is contained in:
Shivaram Lingamneni 2021-11-13 19:51:07 -05:00
parent 741cd8e8af
commit e74da6c51e
3 changed files with 44 additions and 32 deletions

View File

@ -603,7 +603,12 @@ channels:
# (0 or omit for no expiration): # (0 or omit for no expiration):
invite-expiration: 24h invite-expiration: 24h
# operator classes # operator classes:
# an operator has a single "class" (defining a privilege level), which can include
# multiple "capabilities" (defining privileged actions they can take). all
# currently available operator capabilities are associated with either the
# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
# privileges) below: you can mix and match to create new classes.
oper-classes: oper-classes:
# chat moderator: can ban/unban users from the server, join channels, # chat moderator: can ban/unban users from the server, join channels,
# fix mode issues and sort out vhosts. # fix mode issues and sort out vhosts.
@ -613,15 +618,15 @@ oper-classes:
# capability names # capability names
capabilities: capabilities:
- "kill" - "kill" # disconnect user sessions
- "ban" - "ban" # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
- "nofakelag" - "nofakelag" # remove "fakelag" restrictions on rate of message sending
- "roleplay" - "relaymsg" # use RELAYMSG in any channel (see the 'relaymsg' config block)
- "relaymsg" - "vhosts" # add and remove vhosts from users
- "vhosts" - "sajoin" # join arbitrary channels, including private channels
- "sajoin" - "samode" # modify arbitrary channel and user modes
- "samode" - "snomasks" # subscribe to arbitrary server notice masks
- "snomasks" - "roleplay" # use the (deprecated) roleplay commands in any channel
# server admin: has full control of the ircd, including nickname and # server admin: has full control of the ircd, including nickname and
# channel registrations # channel registrations
@ -634,12 +639,12 @@ oper-classes:
# capability names # capability names
capabilities: capabilities:
- "rehash" - "rehash" # rehash the server, i.e. reload the config at runtime
- "accreg" - "accreg" # modify arbitrary account registrations
- "chanreg" - "chanreg" # modify arbitrary channel registrations
- "history" - "history" # modify or delete history messages
- "defcon" - "defcon" # use the DEFCON command (restrict server capabilities)
- "massmessage" - "massmessage" # message all users on the server
# ircd operators # ircd operators
opers: opers:

View File

@ -151,6 +151,8 @@ You'll need an [up-to-date distribution of the Go language for your OS and archi
Many administrative actions on an IRC server are performed "in-band" as IRC commands sent from a client. The client in question must be an IRC operator ("oper", "ircop"). The easiest way to become an operator on your new Ergo instance is first to pick a strong, secure password, then "hash" it using the `ergo genpasswd` command (run `ergo genpasswd` from the command line, then enter your password twice), then copy the resulting hash into the `opers` section of your `ircd.yaml` file. Then you can become an operator by issuing the IRC command: `/oper admin mysecretpassword`. Many administrative actions on an IRC server are performed "in-band" as IRC commands sent from a client. The client in question must be an IRC operator ("oper", "ircop"). The easiest way to become an operator on your new Ergo instance is first to pick a strong, secure password, then "hash" it using the `ergo genpasswd` command (run `ergo genpasswd` from the command line, then enter your password twice), then copy the resulting hash into the `opers` section of your `ircd.yaml` file. Then you can become an operator by issuing the IRC command: `/oper admin mysecretpassword`.
The operator defined in the default configuration file is named `admin` and has full administrative privileges on the server; see the `oper-classes` and `opers` blocks for information on how to define additional operators, or less privileged operators.
## Rehashing ## Rehashing

View File

@ -576,7 +576,12 @@ channels:
# (0 or omit for no expiration): # (0 or omit for no expiration):
invite-expiration: 24h invite-expiration: 24h
# operator classes # operator classes:
# an operator has a single "class" (defining a privilege level), which can include
# multiple "capabilities" (defining privileged actions they can take). all
# currently available operator capabilities are associated with either the
# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
# privileges) below: you can mix and match to create new classes.
oper-classes: oper-classes:
# chat moderator: can ban/unban users from the server, join channels, # chat moderator: can ban/unban users from the server, join channels,
# fix mode issues and sort out vhosts. # fix mode issues and sort out vhosts.
@ -586,15 +591,15 @@ oper-classes:
# capability names # capability names
capabilities: capabilities:
- "kill" - "kill" # disconnect user sessions
- "ban" - "ban" # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
- "nofakelag" - "nofakelag" # remove "fakelag" restrictions on rate of message sending
- "roleplay" - "relaymsg" # use RELAYMSG in any channel (see the 'relaymsg' config block)
- "relaymsg" - "vhosts" # add and remove vhosts from users
- "vhosts" - "sajoin" # join arbitrary channels, including private channels
- "sajoin" - "samode" # modify arbitrary channel and user modes
- "samode" - "snomasks" # subscribe to arbitrary server notice masks
- "snomasks" - "roleplay" # use the (deprecated) roleplay commands in any channel
# server admin: has full control of the ircd, including nickname and # server admin: has full control of the ircd, including nickname and
# channel registrations # channel registrations
@ -607,12 +612,12 @@ oper-classes:
# capability names # capability names
capabilities: capabilities:
- "rehash" - "rehash" # rehash the server, i.e. reload the config at runtime
- "accreg" - "accreg" # modify arbitrary account registrations
- "chanreg" - "chanreg" # modify arbitrary channel registrations
- "history" - "history" # modify or delete history messages
- "defcon" - "defcon" # use the DEFCON command (restrict server capabilities)
- "massmessage" - "massmessage" # message all users on the server
# ircd operators # ircd operators
opers: opers: