Tell every user. Know who read it.
RootSpeak, free for noncommercial use, lets the administrators of a Linux machine send messages to its users, in every terminal and on the desktop, and see for each person whether the message was delivered and confirmed.
anna@lab:~$ ── RootSpeak · Message from the administrator · 01/10 15:13 ── Server off on Saturday from 8 to 12. ──────────────────────────────────────── [RootSpeak] Do you confirm you have read the message? [y/N] y [RootSpeak] Confirmed. anna@lab:~$
Maintenance · 01/10 15:13
Server off on Saturday from 8 to 12.
A message into the dark.
wall and write reach only who is logged in at that moment, in a terminal, and leave no trace. E-mails get lost. Before a reboot, a maintenance window, a policy change or a security notice, the administrator has no way to know who has seen the message.
- A reboot
- A maintenance window
- A policy change
- A security notice
- Who has seen the message?
Send it once. Watch it land.
Send
One command. Recipients: a user, a list, a Unix group (@group), all (every human user) or online (only those logged in now). Optional --expires 2h.
It reaches them wherever they are
In every open terminal (tty, ssh, tmux) and on the desktop (X11 and Wayland) at once; whoever is logged out finds it at the next login.
See who confirmed
For each recipient: sent, delivered or confirmed, with date, time and channel. rspeak status 1, rspeak list, or the TUI.
# rspeak send --to @developers --title "Server update" "Tonight at 11 pm the mail server is updated." Message 1 sent to 14 users. # rspeak status 1 Message 1 · Server update · 01/10 11:30 · from root │ Tonight at 11 pm the mail server is updated. USER STATE anna confirmed on 01/10 15:14 (desktop) luca confirmed on 01/10 11:37 (terminal pts/2) mario delivered, postponed on 01/10 15:20 sara delivered
Everything in orbit around one question.
Who has read the message?
Any recipients
A user, a list, a Unix group, all or online. Text from an argument, a file or stdin; an optional title; an expiry with --expires.
Three states per recipient
Sent, delivered, confirmed, each with date, time and channel: desktop or terminal.
Reminders until confirmed
Every 30 minutes by default. rspeak remind brings the question back at once.
Revoke and purge
rspeak revoke withdraws a message; rspeak purge deletes old ones.
A full-screen TUI
Browse, read who confirmed, write and send, remind, revoke. No ncurses.
History in the system journal
rspeak log, or journalctl -t rspeak.
Nothing for users to install
Users have no command and install nothing: they just receive and confirm.
Quiet for machines
Cron, scp, rsync, ssh without a terminal and services are never touched.
The confirmation records that the user states they have read the message, like read receipts in a messaging app.
Mission control, in a terminal.
Run rspeak with no arguments: browse, read who confirmed, write and send, remind, revoke. One three-colour bar per message: 14 confirmed · 5 delivered · 2 sent.
┌─ RootSpeak · sent messages ──────────────────────────────────────────────────────────────── updated at 11:20:20 ─┐
│ │
│ ID DATE MESSAGE RECIPIENTS │
│ 4 01/10 11:20 [revoked] Reboot · Reboot at 1 pm. ▒▒▒▒▒▒▒▒▒▒▒▒ 2 delivered │
│ 3 01/10 11:20 Your account expires on Friday: ple ▒▒▒▒▒▒▒▒▒▒▒▒ 1 delivered │
│ > 2 01/10 11:20 Maintenance · On Saturday from 8 am ██████▒▒▒▒▒░ 4 confirmed · 3 delivered · 1 sent │
│ 1 01/10 11:20 Server update · Tonight at 11 pm th ████████████ all confirmed (3) │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ █ confirmed ▒ delivered ░ sent │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Enter open n new r revoke m remind p purge / search ? keys q quit │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘Calm for users. Tight for root.
It never blocks anyone
No lock screen, no logout. Users can always choose
Later- Reminders, gently
- Every 30 minutes by default until they confirm;
rspeak remindbrings the question back at once. - Scripts are left alone
- Non-interactive sessions (cron, scp, rsync, ssh without a terminal, services) are never touched.
- Nothing to install for users
- They have no command: they just receive and confirm.
Security
- One machine, no network, no daemon
- It uses what the system already has: logind, sudo, the shell, desktop autostart.
- Only administrators send
- The
rspeakcommand belongs to the administrators' group that already exists (sudoorwheel) and always runs as root; users cannot run it. - Root never writes as root into mailboxes
- Every access happens in a child process with the user's identity, with a time limit.
- Written in C, tested hard
- Every warning is an error, compiler hardening on; tested with AddressSanitizer and UBSan, static analysis and fuzzing of everything that reads users' files.
- Messages cannot take over a terminal
- Escape sequences in messages are cleaned.
Tested, not just claimed.
Tested automatically, as root with real users and sessions, on 22 distributions with systemd.
Desktops
GNOME on Debian, Ubuntu and Rocky Linux with SELinux enforcing; KDE Plasma on Fedora; Cinnamon. On Wayland and on X11.
Shells
bash, zsh, fish: the question at every prompt. ksh, dash, sh: at login.
Requirements
systemd, x86-64. Packages for apt, dnf, zypper and pacman, or the archive.
A package for your distribution.
Installed and removed by your package manager, tested on all 22 distributions. The programs are already built, nothing to compile.
$ sudo apt install ./rootspeak_0.2.1-1_amd64.deb
$ sudo dnf install ./rootspeak-0.2.1-1.x86_64.rpm
$ sudo zypper install --allow-unsigned-rpm ./rootspeak-0.2.1-1.x86_64.rpm
$ sudo pacman -U rootspeak-0.2.1-1-x86_64.pkg.tar.zst
rootspeak-0.2.1-linux-x86_64.tar.gz · the same programs, an installer and the two manuals, in /usr/local.
$ tar -xzf rootspeak-0.2.1-linux-x86_64.tar.gz $ cd rootspeak-0.2.1-linux-x86_64 $ ./install.sh
SHA256SUMS · LICENSE.txt · NOTICE.txt · Source code on GitHub
Free for any noncommercial use: at home, for study and hobby projects, in schools, charities and public bodies, on any number of machines.
The source code is public: read it, check what RootSpeak does as root, build it yourself, change it. Commercial use, including use at work inside a company, needs a written licence: write to rootspeak@nicfio.it. The PolyForm Noncommercial License covers version 0.2.1 too; 0.2.1 was released under the RootSpeak Source-Available Licence, 0.2.0 under the RootSpeak Freeware Licence: whoever has a copy may use it under that licence or under the PolyForm Noncommercial License, at their choice.
Download the source → Read the licenceCheck the download
Put SHA256SUMS next to the file: sha256sum -c --ignore-missing SHA256SUMS. The packages are not signed: this is the check.
Desktop dialog
Needs zenity: the packages bring it, except on Arch (pacman -S zenity). Servers without a desktop work without it.
Upgrade · Remove
Install the new file the same way. apt remove, dnf remove, zypper remove, pacman -R keep the messages; apt purge removes them too.
Questions
Is it really free?
Yes, for any noncommercial use: no trial, no account, no limits. Commercial use, including use at work inside a company, needs a written licence.
Can I see the source code?
Yes. It runs as root and hooks into the login shells, so you should be able to check it: the source archive is next to the packages, the repository is on GitHub, and ./install.sh builds it. It is published under the PolyForm Noncommercial License 1.0.0: source available, not open source.
Does it need a server or a network?
No. RootSpeak works on one machine: no network, no daemon. It uses what the system already has: logind, sudo, the shell and desktop autostart.
Do users need to install anything?
No. Users have no command and install nothing: they receive the message and confirm it.
What if a user is not logged in?
They get the message at their next login, in the terminal or on the desktop.
Can it lock the screen until they confirm?
No, by design. RootSpeak never blocks anyone: users can always choose «Later», and it reminds them every 30 minutes by default until they confirm.
Does «confirmed» prove they read it?
It records that the user states they have read the message, like read receipts in a messaging app, with date, time and channel.