One method of allowing a normal user to shutdown is as follows:
- Grant the wheel group permission to shutdown via sudo by adding this line to /etc/sudoers: ~~~ %wheel ALL= NOPASSWD: /sbin/shutdown now -h ~~~
- Add the user to the ‘wheel’ group.
The user can now shut down the computer with:
sudo shutdown now -h