Hello,
You should modify your /etc/sudoers file to include:
Code:
%users localhost=NOPASSWORD:/sbin/poweroff, /sbin/reboot
You can change %users (which allows all users) to just zoran (which would only allow zoran to issue these commands). This would then change to:
Code:
zoran localhost=NOPASSWORD:/sbin/poweroff, /sbin/reboot
Also, localhost should be set to whatever your computer is called.
If you want to issue these commands from the Flux Menu instead of having to open a term window every time you to shutdown or reboot (a nice feature) - add this to your ~/.fluxbox/menu:
Code:
[exec] (Reboot) {sudo /sbin/reboot}
[exec] (Shutdown) {sudo /sbin/poweroff}