Files
bbs/docs/wiki/Administration.md
T
Claude 09e9152049 QWK networking: the BBS as a hub, and as a node
As a hub: an account flagged qwk_node (bbs user qwknode NAME, or the
API's qwk_node) is another BBS's.  What its REPs bring is posted under
its writers' names, with its access checked, and its packets leave out
what came from it.

As a node: [qwknet NAME] calls the hub by FTP (FTPS explicit or
implicit) every so often, or on bbs qwknet call and POST
/api/v1/admin/qwknet/call.  It puts a REP of what was written here in
the network's areas since the last call (nothing from before joining,
nothing that came by a network or peer), then takes the hub's packet
and posts it in the areas of its conferences (CONFERENCE = AREA).
Messages are known by conference and number (qwk_msgs), so nothing
comes twice and answers keep their threads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 18:30:41 +00:00

3.2 KiB

Everything is done with the bbs command, on the configuration the BBS runs with (-config FILE; without it, the defaults and bbs.db here). These are safe to run while the BBS is serving.

Users

bbs user list
bbs user add NAME [-sysop]          # asks for the password (or reads it from a pipe)
bbs user passwd NAME
bbs user lock NAME                  # and unlock
bbs user sysop NAME                 # and unsysop
bbs user del NAME                   # their mail goes; their messages stay

The database

bbs db copy DATABASE                # into a new one: a path, postgres://..., mysql://...

See Databases.

Access

bbs user level NAME N               # 0-255
bbs user flags NAME +AB -C          # or AB: exactly those
bbs user waiting                    # under validated_level
bbs user validate NAME
bbs area require AREA READ POST     # "30 F", sysop, - for none
bbs filearea require AREA DOWNLOAD UPLOAD

See Access levels.

SSH keys

bbs sshkey add USER FILE            # each authorized_keys line in FILE (- : stdin)
bbs sshkey list [USER]
bbs sshkey del ID

Users add their own from their profile, or by the API: SSH.

Message areas

bbs area list
bbs area add NAME "DESCRIPTION" [-sysop-only]
bbs area del NAME                   # and its messages
bbs area newsgroup AREA GROUP       # make it a newsgroup (- : no longer)
bbs area echo AREA TAG              # make it a FidoNet echo (- : no longer)
bbs area group AREA GROUP           # list it under a group (- : none)
bbs area aliases AREA yes|no        # whether its posters may use their aliases
bbs area keep AREA MESSAGES DAYS    # keep the newest MESSAGES, for DAYS (0: no limit)
bbs area purge                      # take away what areas keep no more, now

What an area keeps is enforced hourly while the BBS runs (and by bbs area purge): beyond its newest MESSAGES, and older than DAYS, messages go, with their votes and polls.

A sysop also adds areas from the BBS (+ in the message areas) and deletes any message. Newsgroups: Newsgroups and NNTP; echoes: FidoNet.

File areas

bbs filearea list
bbs filearea add NAME "DESCRIPTION" [-sysop-upload]
bbs filearea del NAME
bbs file add AREA PATH ["DESCRIPTION"]   # as the first sysop
bbs file list AREA
bbs file del AREA NAME

See Files and FTP.

Mail exchange

bbs news sync [PEER]                # exchange articles with news peers now
bbs fido poll [LINK]                # call FidoNet links now
bbs fido scan [LINK]                # pack new mail into the outbound
bbs fido toss [LINK]                # take in what has come
bbs qwknet call [NET]               # call QWK networks' hubs now
bbs user qwknode|unqwknode NAME     # an account a QWK node calls this hub as

The server does all of these on its own schedule; these are for now.

The rest

bbs check                           # read the configuration, show its warnings
bbs init                            # make the database, with two areas
bbs [serve]                         # answer callers

See also: Running, Configuration