When we install/remove/update packages or make any changes which require administrative privileges we are prompted for the password of admin user who has the sudo
privileges - this happens both via GUI and terminal.
However, if we try to shutdown and restart via terminal, it complains that we need to be root
:
$ reboot
reboot: Need to be root
$ shutdown now
shutdown: Need to be root
But we are never asked for a password when we perform these actions via the cog-wheel at top right.
Why is there this discrepancy?