I wish to create a shortcut key for reboot/shutdownfor all the users (including non-root users). I have tried creating a custom shortcut key Ctrl+R and assigned it to the command “gksu reboot” however Ubuntu requires root privileges to execute the command and throws up the message
Failed to run reboot as root The underlying authorization mechanism (sudo) does not allow you to run this program. Contact the system administrator.
I do not wish to give root privileges to the users and essentially want to execute the Shutdown/Reboot (that is usually accessed through the gear icon by all the users) through commands using shortcut keys
Can someone please help?