Переглянути джерело

fix #1827

Document operator capabilities.
tags/v2.8.0
Shivaram Lingamneni 2 роки тому
джерело
коміт
e74da6c51e
3 змінених файлів з 44 додано та 32 видалено
  1. 21
    16
      default.yaml
  2. 2
    0
      docs/MANUAL.md
  3. 21
    16
      traditional.yaml

+ 21
- 16
default.yaml Переглянути файл

603
     # (0 or omit for no expiration):
603
     # (0 or omit for no expiration):
604
     invite-expiration: 24h
604
     invite-expiration: 24h
605
 
605
 
606
-# operator classes
606
+# operator classes:
607
+# an operator has a single "class" (defining a privilege level), which can include
608
+# multiple "capabilities" (defining privileged actions they can take). all
609
+# currently available operator capabilities are associated with either the
610
+# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
611
+# privileges) below: you can mix and match to create new classes.
607
 oper-classes:
612
 oper-classes:
608
     # chat moderator: can ban/unban users from the server, join channels,
613
     # chat moderator: can ban/unban users from the server, join channels,
609
     # fix mode issues and sort out vhosts.
614
     # fix mode issues and sort out vhosts.
613
 
618
 
614
         # capability names
619
         # capability names
615
         capabilities:
620
         capabilities:
616
-            - "kill"
617
-            - "ban"
618
-            - "nofakelag"
619
-            - "roleplay"
620
-            - "relaymsg"
621
-            - "vhosts"
622
-            - "sajoin"
623
-            - "samode"
624
-            - "snomasks"
621
+            - "kill"      # disconnect user sessions
622
+            - "ban"       # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
623
+            - "nofakelag" # remove "fakelag" restrictions on rate of message sending
624
+            - "relaymsg"  # use RELAYMSG in any channel (see the 'relaymsg' config block)
625
+            - "vhosts"    # add and remove vhosts from users
626
+            - "sajoin"    # join arbitrary channels, including private channels
627
+            - "samode"    # modify arbitrary channel and user modes
628
+            - "snomasks"  # subscribe to arbitrary server notice masks
629
+            - "roleplay"  # use the (deprecated) roleplay commands in any channel
625
 
630
 
626
     # server admin: has full control of the ircd, including nickname and
631
     # server admin: has full control of the ircd, including nickname and
627
     # channel registrations
632
     # channel registrations
634
 
639
 
635
         # capability names
640
         # capability names
636
         capabilities:
641
         capabilities:
637
-            - "rehash"
638
-            - "accreg"
639
-            - "chanreg"
640
-            - "history"
641
-            - "defcon"
642
-            - "massmessage"
642
+            - "rehash"       # rehash the server, i.e. reload the config at runtime
643
+            - "accreg"       # modify arbitrary account registrations
644
+            - "chanreg"      # modify arbitrary channel registrations
645
+            - "history"      # modify or delete history messages
646
+            - "defcon"       # use the DEFCON command (restrict server capabilities)
647
+            - "massmessage"  # message all users on the server
643
 
648
 
644
 # ircd operators
649
 # ircd operators
645
 opers:
650
 opers:

+ 2
- 0
docs/MANUAL.md Переглянути файл

151
 
151
 
152
 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`.
152
 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`.
153
 
153
 
154
+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.
155
+
154
 
156
 
155
 ## Rehashing
157
 ## Rehashing
156
 
158
 

+ 21
- 16
traditional.yaml Переглянути файл

576
     # (0 or omit for no expiration):
576
     # (0 or omit for no expiration):
577
     invite-expiration: 24h
577
     invite-expiration: 24h
578
 
578
 
579
-# operator classes
579
+# operator classes:
580
+# an operator has a single "class" (defining a privilege level), which can include
581
+# multiple "capabilities" (defining privileged actions they can take). all
582
+# currently available operator capabilities are associated with either the
583
+# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
584
+# privileges) below: you can mix and match to create new classes.
580
 oper-classes:
585
 oper-classes:
581
     # chat moderator: can ban/unban users from the server, join channels,
586
     # chat moderator: can ban/unban users from the server, join channels,
582
     # fix mode issues and sort out vhosts.
587
     # fix mode issues and sort out vhosts.
586
 
591
 
587
         # capability names
592
         # capability names
588
         capabilities:
593
         capabilities:
589
-            - "kill"
590
-            - "ban"
591
-            - "nofakelag"
592
-            - "roleplay"
593
-            - "relaymsg"
594
-            - "vhosts"
595
-            - "sajoin"
596
-            - "samode"
597
-            - "snomasks"
594
+            - "kill"      # disconnect user sessions
595
+            - "ban"       # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
596
+            - "nofakelag" # remove "fakelag" restrictions on rate of message sending
597
+            - "relaymsg"  # use RELAYMSG in any channel (see the 'relaymsg' config block)
598
+            - "vhosts"    # add and remove vhosts from users
599
+            - "sajoin"    # join arbitrary channels, including private channels
600
+            - "samode"    # modify arbitrary channel and user modes
601
+            - "snomasks"  # subscribe to arbitrary server notice masks
602
+            - "roleplay"  # use the (deprecated) roleplay commands in any channel
598
 
603
 
599
     # server admin: has full control of the ircd, including nickname and
604
     # server admin: has full control of the ircd, including nickname and
600
     # channel registrations
605
     # channel registrations
607
 
612
 
608
         # capability names
613
         # capability names
609
         capabilities:
614
         capabilities:
610
-            - "rehash"
611
-            - "accreg"
612
-            - "chanreg"
613
-            - "history"
614
-            - "defcon"
615
-            - "massmessage"
615
+            - "rehash"       # rehash the server, i.e. reload the config at runtime
616
+            - "accreg"       # modify arbitrary account registrations
617
+            - "chanreg"      # modify arbitrary channel registrations
618
+            - "history"      # modify or delete history messages
619
+            - "defcon"       # use the DEFCON command (restrict server capabilities)
620
+            - "massmessage"  # message all users on the server
616
 
621
 
617
 # ircd operators
622
 # ircd operators
618
 opers:
623
 opers:

Завантаження…
Відмінити
Зберегти