by nishanths · 3y ago · 0 comments
This is Debian 11 attempting a reboot as a regular user:
$ reboot
Failed to set wall message, ignoring: Access denied
Failed to reboot system via logind: Access denied
Failed to open initctl fifo: Permission denied
Failed to talk to init daemon.
$
Compare with macOS: $ reboot
reboot: Operation not permitted
$
and OpenBSD: $ reboot
Operation not permitted
$
edit: s/meandering/ramblingMeandering errors to you are important messages to those who care enough to interpret them.
And would it not be very weird if 2/3 managed to run, sending wall messages to everyone, preventing new logins and so forth but then not rebooting? Or not preventing new logins, not sending the message but still reboot?
All of those "corner cases", including the quoted permission denied messages, could well be prevented but are not.