I need to create a user and deny them permission to turn off the machine.
DO SOMEONE KNOW HOW TO CHANGE THE PERMISSIONS OF A NORMAL USER TO NOT ALLOW ME TO TURN OFF?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
shutdown requires a privileged account.
From freebsd.org's documentation:
One must be root or a member of operator in order to run shutdown(8).
If the user has sudo rights, you can forbid access to shutdown, reboot, poweroff and halt by modifying
/etc/sudoers something like this:
username ALL=(ALL:ALL) ALL, !SHUTDOWN
%groupname ALL=(ALL:ALL) ALL, !SHUTDOWN to disallow a group.