There are a lot of questions about why shutdown and reboot require root privileges. There are many good answers available too.
Why do we need to be root in terminal for shutdown and restart?
- How does the power button shut the computer down without root permission?
But there is someting I don't understand : If being able to reboot or shutdown without root privileges in a multiuser system is a very bad idea ... then why is this possible in Ubuntu 16.04?
When I type poweroff or reboot in a terminal and hit Enter, it indeed shuts down/reboots!
It is okay for me when poweroff and reboot don't require root privileges ... but why does suspend need root privileges?
When I type suspend in a terminal and hit Enter, it doesn't suspend, instead it gets stuck ... and when I run pm-suspend, It requires sudo.