Why do reboot(8) and shutdown(8) have different ownership and mode? And ftm, why is reboot(8) world-executable?
I usually add my non-privileged user to the operator group, which allows me to do all sorts of things with shutdown(8) including shutdown -r, and yet I am not allowed to reboot(8).
The work-around is obvious. My question is literally, "Why?"
Code:
# ls -l $(which reboot shutdown)
-r-xr-xr-x 5 root wheel 15168 Dec 9 13:23 /sbin/reboot*
-r-sr-xr-- 2 root operator 16056 Dec 9 13:23 /sbin/shutdown*
I usually add my non-privileged user to the operator group, which allows me to do all sorts of things with shutdown(8) including shutdown -r, and yet I am not allowed to reboot(8).
The work-around is obvious. My question is literally, "Why?"