bulb/README.md

37 lines
1015 B
Markdown
Raw Normal View History

2024-10-08 13:51:30 -06:00
# bulb
A simple bulletin board for your server. Users of the system can post and read
messages using the "bulb" command. You can also set up multiple boards.
2024-10-09 18:22:00 -06:00
## Setup
2024-10-09 18:27:35 -06:00
You can install the `bulb` command by running:
```
hare build cmd/bulb
```
And then installing the resulting executable.
2024-10-09 18:22:00 -06:00
The reccomended way to use this program is to have the executable owned by the
2024-10-09 18:27:35 -06:00
user `bulb`, with the setuid bit enabled. Then, create a list of boards (empty
text files) located at `/var/bulb/` which are also owned by `bulb`. This will
allow all users to use the program to post on boards without allowing them to
directly edit their contents, thereby preventing them from mischeviously
re-writing chat history.
2024-10-09 18:22:00 -06:00
2024-10-08 13:51:30 -06:00
## Usage
```
2024-10-11 12:34:10 -06:00
bulb: bulletin board
2024-10-08 13:51:30 -06:00
2024-10-11 12:34:10 -06:00
Usage: bulb [-hlpu] [-b <board>] [-n <number>]
2024-10-08 13:51:30 -06:00
2024-10-11 12:34:10 -06:00
-h: print this help text
-b <board>: specify a board other than general
-l: list available boards and exit
-n <number>: display N most recent messages
-p: post a message (from stdin)
-u: operate undercover (anonymously)
2024-10-08 13:51:30 -06:00
```