This page lists the `bbs` commands that a sysop uses each day. Each command uses the configuration of the BBS (`-config FILE`). Without `-config FILE`, it uses the defaults and `bbs.db` in the current directory. You can run all of these commands safely while the BBS has callers. ## 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 # deletes the account and its mail (messages stay) ``` ## The database ``` bbs db copy DATABASE # into a new one: a path, postgres://..., mysql://... ``` Refer to [Databases](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 ``` Refer to [Access levels](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 can also add their own keys from their profile or through the API. Refer to [SSH](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 ``` While the BBS runs, it applies the limits of each area every hour. `bbs area purge` applies them immediately. The BBS deletes the messages after the newest `MESSAGES`, and the messages older than `DAYS`. It also deletes their votes and polls. A sysop can also add areas from inside the BBS (`+` in the message areas) and delete all messages. For newsgroups, refer to [Newsgroups and NNTP](Newsgroups-and-NNTP). For echoes, refer to [FidoNet](FidoNet). ## File areas ``` bbs filearea list bbs filearea add NAME "DESCRIPTION" [-sysop-upload] bbs filearea del NAME bbs filearea echo NAME TAG|- # make it a FidoNet file echo (- : no longer) bbs filearea group NAME GROUP|- # a CompuServe forum's library (- : none) bbs file add AREA PATH ["DESCRIPTION"] # as the first sysop bbs file list AREA bbs file del AREA NAME ``` Refer to [Files and FTP](Files-and-FTP). ## Image boards ``` bbs chan board add DIR TITLE [DESCRIPTION] [-nsfw] # /DIR/ at /chan/DIR/ bbs chan board set DIR KEY VALUE # pages, per_page, bump_limit, mods, nsfw, oekaki... bbs chan board list bbs chan board del DIR # its posts and images too bbs chan ban add ADDRESS DAYS [BOARD|-] [REASON...] bbs chan ban list | del ID ``` Refer to [Image boards](Image-Boards). ## Mail exchange The BBS exchanges mail with its peers on its own schedule. These commands do the exchange now. ``` 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] # import the mail that came in bbs fido node ADDRESS # a system in the nodelist bbs fido nodes WORDS... # systems by name, place or sysop bbs fido subs LINK # the echoes and file echoes a link has bbs fido link|unlink LINK TAG... # link it to echoes (filelink, fileunlink) bbs fido areafix|filefix LINK CMD... # a request to a link's AreaFix (FileFix) bbs qwknet call [NET] # call QWK networks' hubs now bbs user qwknode|unqwknode NAME # an account a QWK node calls this hub as ``` ## Chat rooms ``` bbs room list # the permanent rooms, with their topics bbs room add ROOM ["TOPIC"] # kept open when empty (IRC: held by BBSServ) bbs room topic ROOM ["TOPIC"] # set its topic (none: clear it) bbs room del ROOM # the room closes after its last caller leaves ``` A BBS that runs gets these changes when it starts again. The `ROOM` command of BBSServ makes them immediately. Refer to [IRC](IRC#permanent-rooms). ## The rest ``` bbs check # read the configuration, show its warnings bbs init # make the database, with two message areas and a file area bbs [serve] # answer callers ``` **See also:** [Running](Running), [Configuration](Configuration)