1

On Ubuntu 14.04 LTS

I would like to force certain terminal commands to run as root - or at least require the user password - to execute.

For instance, poweroff requires sudo while gnome-session-quit --logout (which I have aliased as logout) does not.

How could I require sudo when running logout or any other command of my choosing?

0 Answers0