The simplest solution which I can tell you over here that you should add the desire user into the ‘users’ group. Once done you have to create the policykit rule so that it can allow users of group permission to shut down and another one for restart as other user is logged on the system.
Code:
# /var/lib/polkit-1/localauthority/50-local.d/shutdown.pkla
[system shutdown privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes
Code:
# /var/lib/polkit-1/localauthority/50-local.d/restart.pkla
[system restart privs]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=no
ResultInactive=no
ResultActive=yes
Bookmarks