2015-03-26 13:13 GMT-03:00 Hans <linux@interworld.net.au>:
On 22/03/15 05:26, German wrote:
If I run poweroff from root, the system shuts down, however when I run poweroff from user -- command not found. How to shut down the system from user? Thanks

If nothing works, I use the big red switch at the front of my box to poweroff.



I don't know if this has been already answered:

edit /etc/sudoers to include a line like the one bellow:


your_user_name  ALL=NOPASSWD:/sbin/halt,NOPASSWD:/sbin/reboot,NOPASSWD:/sbin/poweroff,


Then log off and log in again, and it should work.

Hope this helps,
Francisco