2015-03-21 14:01 GMT-06:00 German <gentger...@gmail.com>:
> On Sat, 21 Mar 2015 15:47:16 -0400
> Rich Freeman <ri...@gentoo.org> wrote:
>
>> On Sat, Mar 21, 2015 at 3:39 PM, German <gentger...@gmail.com> wrote:
>> >
>> > No, I am trying to shutdown from a console
>>
>> Well, the old answer would be that you need to use sudo to run it, as
>> shutting down is a privileged operation.
>>
>> I suspect that the new answer is that with appropriate
>> policykit/consolekit/etc settings you can probably allow somebody
>> sitting at a physical console to shut down the system, or any
>> logged-in user if you prefer.  However, I haven't actually set that up
>> myself.
>
> Well, I am the only one sitting at the console :) Are there any key 
> combination which allows that? I can reboot even if I am a user with 
> Ctrl+Alt+Delete
>>

Just use sudo to allow your user to shutdwon without
password(suders(5) manpage is your friend), and put an  alias in your
bashrc:
alias poweroff="sudo /sbin/poweroff"

Reply via email to