Fix: Wall Not Working Over SSH on Debian
On a fresh Debian installation, the wall command (broadcast to all logged-in users) only works on the console... SSH sessions don't receive the message. This breaks the 42 born2beroot project requirement to implement working wall functionality. I couldn't find a solution to this problem using LLMs. Every model I asked either gave generic advice or suggested fixes that didn't work.
Root cause: Missing or incorrectly-permissioned /run/utmp file at boot.
The Fix
Run these commands:
sudo chown root:tty /usr/bin/wall
sudo chmod g+s /usr/bin/wall
sudo bash -c 'echo "f /run/utmp 0664 root utmp -" > /usr/lib/tmpfiles.d/utmp.conf'
sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/utmp.conf
sudo systemctl restart systemd-logind
Why It Works
chown+chmod— Giveswallbinary group permissions to access ttytmpfiles.d/utmp.conf— Ensures/run/utmpis created with correct permissions (0664 root:utmp) on every bootsystemd-tmpfiles --create— Applies the configuration immediatelysystemctl restart systemd-logind— Forces re-read of/run/utmp
Verify It Works
Open two SSH sessions:
Session 1:
wall "test"
Session 2 should receive:
Broadcast message from user@hostname (pts/0) (Mon May 4 10:10:46 2026):
test