Kalgoorlie Retro Docs

Documentation for the Kalgoorlie Retro BBS, its games and servers

User Tools

Site Tools


ironbarkbbs:sysop_tools

Sysop tools and the Operator section

The Operator section: User Editor, Configuration, Menu Editor, File Manager and Bulletin Manager

Like Synchronet's SCFG and user editor, Ironbark has full-screen programs for the sysop. They are built-in doors in the door section with code OPERATOR (new BBS folders have it; for an older one add this to doors.toml), and the sysop menu's O opens that section:

[[section]]
code = "OPERATOR"
name = "Operator"
access = "SYSOP"

[[section.door]]
code = "USEREDIT"
name = "User Editor"
kind = "builtin"
builtin = "useredit"
sysop_only = true

[[section.door]]
code = "CONFIG"
name = "Configuration"
kind = "builtin"
builtin = "config"
sysop_only = true

[[section.door]]
code = "MENUEDIT"
name = "Menu Editor"
kind = "builtin"
builtin = "menuedit"
sysop_only = true

[[section.door]]
code = "FILEMAN"
name = "File Manager"
kind = "builtin"
builtin = "fileman"
sysop_only = true

[[section.door]]
code = "BULLMGR"
name = "Bulletin Manager"
kind = "builtin"
builtin = "bulletinmgr"
sysop_only = true

The first four need an ANSI terminal of at least 80 x 24 (larger screens get bigger boxes). Messages from other nodes wait until you leave them. The Bulletin Manager (at the end of this section) is a plain list and works on any terminal.

Keys (the four full-screen programs)

Key What it does
Up, Down, PgUp, PgDn, Home, End move the bar
Enter open the item or edit the value under the bar
Esc back (in an edit field: cancel)
Insert / Delete (or Backspace) add / remove an item in a list (removing asks first)
+ / - move the item under the bar down / up
Y / N set a Yes/No value
* show or hide passwords (they show as dots)
a letter in menus, jump to the next item starting with it
Ctrl-L redraw the screen

Editing a value in place: Left/Right/Home/End move, Insert switches insert/overtype, Ctrl-U clears, Ctrl-K cuts to the end, Enter keeps it, Esc leaves it as it was. Tab shows a password while you type it. The bottom line always says what the setting under the bar does. Choices (door kind, network, editor …) open a list to pick from; letter sets (flags, exemptions, restrictions) open a list of A-Z with what each letter means: Space or Enter turns the letter under the bar on or off, typing a letter turns that one on or off, Esc finishes.

User Editor

A list of users: number, name, level, last call and status (sysop, new, guest, expired, deleted). Keys: Enter edit, / or F find by name, real name, location, e-mail or note, A users meeting an access string (LEVEL 60 AND NOT FLAG B), U unvalidated users (at the new-user level; U again for all), X all users, # go to a user by number, V apply a quick validation set, D show deleted users too, Insert add a user, Delete delete or undelete, ? the key list. On the user form, C lists the user's recent calls (time, node, connection type, address, minutes).

The user form has every field: name, real name, location, e-mail, level, minutes per day, flag sets 1-4, exemptions, restrictions, credits, expiry (YYYY-MM-DD or never), birth date, gender, note, message editor, expert mode, deleted, a new password, quick validation, and the counts (calls, posts, uploads and downloads with bytes, first and last call). A shows the user's answers to the new-user questions. Esc asks whether to save. You can't take your own sysop level away or delete yourself. A user who is online keeps the copy their session loaded, so their call can undo changes when they log off.

Quick validation sets are in ironbark.toml (and in Configuration):

[[validation]]
name = "Validated user"
level = 60
flags1 = ""        # these three replace the user's letters
exempt = ""
restrict = ""
minutes = 240      # 0 = leave as it is
credits = 0        # added
expire_days = 0    # the account expires this many days from now; 0 = never

Configuration

The menu has every part of the settings: BBS settings, servers, paths, security and blocking, credits, uploads, the FTP server, BBSLink, DOSBox, the Gazette, quick validation sets, timed events, new-user questions, message groups and areas, file areas, door sections and doors, FidoNet / echomail (general settings, networks with our addresses and AKAs, links with their passwords, area patterns and polling, and the echo area list) and QWK networking (this BBS, hubs and their conferences). A setting marked * takes effect after a restart.

Echo areas (under FidoNet) lists which message area carries which tag on which network. Insert asks for the network and tag, then makes a new message area for it (or ties an existing one); Delete takes an area off the network. In an area's own form the FidoNet network and QWK hub are picked from those set up. If ftn.toml or qwk.toml doesn't exist yet, Configuration offers to start one.

Changes are kept in memory until you pick Save changes (or answer Save when you leave). Saving first checks everything, as ironbark check does: the files must read, area, door, file-area and section codes must be unique, access strings must work, areas must name networks and hubs that exist (with a tag), doors need what their kind needs (a host for rlogin/telnet, a command, a built-in name), events need a valid time, and ftn.toml / qwk.toml must pass their own checks. Anything wrong is listed and nothing is written. Otherwise each changed file is copied to data/config-backup/NAME.YYYYmmdd-HHMMSS and written, and the running BBS takes up the new settings: new callers get them at once, callers online get them at their next main menu.

The files stay readable: values are changed where they are, your comments and order are kept, and new entries are added at the end of their list in the same style. Undo all changes reads the files again.

Edits every menu callers see in one place. The first list (“All menus”) has:

  • Door menus (lines starting Doors): the door sections in doors.toml as a tree, each with its doors, the door menus inside it and links to other menus. Top-level ones are what callers pick from after the door key.
  • Menus of commands (lines starting Menu): the menus in menus.toml (section 12). One that nothing opens yet is marked “not linked”.

Keys on the list: Enter open; Insert add a door menu (code, name, where it goes) or a menu of commands (code, title; it starts with Q Back, opens its items, then offers to link it); Delete remove (a door menu only when empty); + / - move; L link (put a menu on another menu: a new key on the main menu or another menu, or an entry in a door menu; put a door menu on a menu, or inside another door menu); P preview; M make it the main menu; C copy; R rename (links follow); B built-in copy (a copy of the built-in main menu); S save; Esc quit.

A door menu lists doors, door menus inside it (marked ») and entries that open a menu of commands, in the order callers see them. Enter: a door's settings (the Configuration door form), open a door menu inside, or open a linked menu's items. Insert: a new door, a door moved here from another door menu, a new door menu inside this one (it opens to be filled), or an entry that opens a menu of commands (an existing one or a new one). Delete: a door (with its settings), a link (the menu stays) or an empty door menu. + / - move doors. E: this door menu's settings (name, inside which section, level, access, sysop only).

An entry that opens a menu of commands is a door of kind builtin with builtin = "menu:CODE".

Adding an item to a menu (Insert in its items) asks for the key, then what it opens: a new door (set up right there: code, name, kind, then the door form; it is kept in the hidden door section MENUDOORS, “Doors used on menus”, so it shows only where your menus put it), a door that is already set up, a sub-menu (a new menu, or one you already have), a door menu, or something else (the full list of actions). New items go above Q Back. Enter on an item that runs a door offers the door's own settings. A door section with hidden = true is not listed with the door sections; its doors are used from menus.

A menu's form: Title, Screen, Prompt (\1 stands for Ctrl-A), Hot keys, Access, Items, Opened from (Enter links it) and Preview. The items list takes Enter, Insert (key, then action, then description), Delete and + / -. Enter on an item that opens another menu or door menu asks whether to open that menu (to edit what is on it) or change the item. Picking an action opens the list of actions; menu: picks from the menus or makes a new one (it opens straight away to be filled), door: from every door, doorsection: from the section tree, script: from menus/*.rhai, and screen: and groupchat: ask for a name.

Preview (P) leaves the editor and runs a menu as it is in the editor, unsaved, on your own screen: sub-menus and back work, other items only say what they would do.

Changes are kept until you save (S, or Save when you leave). Saving checks doors.toml and menus.toml together, backs both up in data/config-backup, writes them and reloads the settings, then warns about any menu that nothing opens. M saves first, then sets [bbs] main_menu in ironbark.toml (also checked and backed up).

File Manager

Like Synchronet's fileman.js. The first list has the file areas with their files and notes: uploads to validate, files new on disk, missing files. Enter opens an area; V opens the validation queue (every upload waiting, in all areas: V validate, A validate all, Enter edit, R remove).

An area's list shows each file's name, size, date, uploader, downloads and the first line of its description; * marks an upload waiting for validation, ! a file missing from the folder. Keys: Enter edit, M move to another area, C copy to another area, Delete (or R) remove, V validate (or put back in the queue), I (or Insert) the folder and the list, B import a FILES.BBS, ? keys, Esc back.

  • Edit: Description (a list of lines: Enter edits one, Insert adds, Delete removes, + / - move), Uploader, Date (YYYY-MM-DD HH:MM; the new-files scan goes by it), Downloads, Validated, and Move / Copy / Remove. Esc asks to save when something changed.
  • Move takes the file to the other area's folder and its record (description, uploader, date, downloads) to that area. Copy makes a second file and record (no downloads yet). Both refuse when the other area already has a file of that name.
  • Remove asks first, then moves the file to the quarantine folder ([uploads] quarantine, or data/removed when that is empty) as TIME-removed-NAME and drops the record. Nothing is deleted; empty the folder yourself.
  • I lists + files in the folder that aren't listed and - records whose file has gone. Enter on a new file shows its description from FILES.BBS or FILE_ID.DIZ to change (or asks for one) and adds it; A adds them all with those descriptions. Enter on a missing one removes the record. (Callers listing an area also add new files and drop missing ones, as before; the File Manager shows them first.)
  • B asks for a folder (the area's own to start with) holding a FILES.BBS: NAME description lines, continuation lines starting with spaces (a leading | or + is dropped), comment lines starting with ; or -, and [03] download counters or size and date columns are dropped from the description. Each file named and present is listed (a listed one gets the new description); from another folder the files are copied into the area's folder. It ends with what was added, updated, copied and not found.

Every change is noted in the log.

Bulletin Manager

For the numbered logon bulletins: the screens bulletin1.ans, bulletin2.ans … (.msg and .asc too; a first one named bulletin.ans, as on Synchronet, counts as number 1) in your screens folder, or in the built-in screens folder (text/, marked (text) in the list). The bulletins logon step shows each of them to a caller once, and again when the file changes.

The list has each bulletin's file name, size, date of last change, how many callers have seen this version, and its first line of text. Keys:

Key What it does
V view a bulletin as callers see it
D delete a bulletin: it is moved to the folder bulletin_archive beside it (as NAME.YYYYmmdd-HHMMSS), not erased, and the rest are renumbered
R renumber so there are no gaps (offered when there is one): only the number in each file name changes, and each caller's “seen” mark moves with the file, so nobody is shown a bulletin again because its name changed
S reset “seen” for one bulletin, or (Enter) for all: everybody is shown it again at their next logon
Q leave

To add a bulletin, put the next bulletinN file in the screens folder (or upload it on the web admin's Screens page); to bring one back, move it out of bulletin_archive under a free number. Renumbering stops without changing anything if a new name is already taken by another file. Deletes, renumbering and resets are noted in the log.

Sysop tools: spy, node control, call history, inactive users, backups, disk space

Spy (sysop menu S, or Spy on the web Nodes page) shows a node's screen as it happens, starting with what is on it now, doors and file transfers included. In the terminal: Ctrl-Z stops, Ctrl-T takes over the caller's keyboard (your keys go to their session as if they typed them; their own keys still work) and Ctrl-T again gives it back. On the web page the screen updates every second; tick Take over and the keys you press on the page go to the caller, or type text in the box and press Send. Callers are told “The sysop is watching your screen” unless [security] spy_notice = false. Spying and taking over are written to the log. A spy that falls behind a very fast screen misses some output; the caller is never slowed down.

Node control (sysop menu C, or the Node control buttons on the web Nodes page):

  • Lock: only sysops and users with exemption N may log on there; others are told the node is locked. New callers are put on unlocked nodes first.
  • Take down: the node takes no calls. With a caller on it, it goes down when they leave. Bring up puts it back.
  • Quiet mode (sysop menu I for yourself; Quiet on/off on the web for a sysop on a node): you are not listed in who's online (callers see “waiting for a caller”), not on the public web page or the Gazette, and no logon/logoff alerts go out for you. It stays on for your later calls.

All of this lasts until the BBS restarts. Sysops see the state in who's online (“locked”, “down”, “down after this call”, “quiet”).

Call history: each call records the node, connection type, address and logon and logoff times. C on the User Editor's user form and the web user page show the recent calls with minutes on.

Inactive users and backups run in the nightly maintenance (00:05), set in ironbark.toml (or Configuration, Backups and inactive users):

[maintenance]
backup = true              # back up the database and the *.toml settings each night
backup_dir = ""            # empty = data/backup; each night a YYYYmmdd folder
backup_keep = 7            # nightly backups kept (older YYYYmmdd folders are removed)
purge_inactive_days = 0    # mark users deleted after this many days without a call (0 = off)
purge_min_age_days = 30    # accounts younger than this are never removed
min_free_mb = 500          # warn when the data folder's disk has less than this free (0 = off)

The removal never touches sysops, users with exemption P, the guest account (restriction G or [security] guest_name), anyone online, or accounts younger than purge_min_age_days. Users are only marked deleted (undelete them on the web user page or in the User Editor), and each one is logged. Sysop menu P and the web page /admin/purge (Inactive users, on the Users page) list who would go now, with a button to do it at once.

The backup copies the database with SQLite's online backup (safe while callers are on) and the settings files into the dated folder; a second backup the same day replaces it. Back up now on the web Nodes page makes one at any time, and a timed event with run = "backup" works too. To restore, stop the BBS, copy ironbark.db back into data/ (and the .toml files into the BBS folder) and start it again.

Disk space: every ten minutes Ironbark looks at the free space on the disk (file system) that holds the data folder. When it is below [maintenance] min_free_mb megabytes (500 by default), a line goes in the log (“low disk space: …”) and a mail from Ironbark to the sysop (user #1), at most once a day for as long as space is short. min_free_mb = 0 switches the check off. It looks only at the data folder's disk: if the file areas or backups are on another disk, that one is not watched.


From the Ironbark Sysop Guide, which is also in every download as SYSOP-GUIDE.txt.

ironbarkbbs/sysop_tools.txt · Last modified: by 127.0.0.1