Re: [gentoo-user] Re: How to poweroff the system from user?

2015-05-09 Thread lee
Neil Bothwick writes: > On Wed, 15 Apr 2015 00:06:33 +0200, lee wrote: > >> >> > > How do you remember these keys? >> >> > >> >> > BUSIER backwards, or bookmark >> >> > http://en.wikipedia.org/wiki/Magic_SysRq_key in your phone's >> >> > browser :) >> >> >> >> Phone's browser? >> > >> > If

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-14 Thread Neil Bothwick
On Wed, 15 Apr 2015 00:06:33 +0200, lee wrote: > >> > > How do you remember these keys? > >> > > >> > BUSIER backwards, or bookmark > >> > http://en.wikipedia.org/wiki/Magic_SysRq_key in your phone's > >> > browser :) > >> > >> Phone's browser? > > > > If you need the SysRq trick, you probab

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-14 Thread lee
Emanuele Rusconi writes: > On 8 April 2015 at 23:47, lee wrote: >> >> Neil Bothwick writes: >> >> > On Tue, 07 Apr 2015 21:21:38 +0200, lee wrote: >> > >> > > How do you remember these keys? >> > >> > BUSIER backwards, or bookmark >> > http://en.wikipedia.org/wiki/Magic_SysRq_key in your phone'

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-14 Thread Emanuele Rusconi
On 8 April 2015 at 23:47, lee wrote: > > Neil Bothwick writes: > > > On Tue, 07 Apr 2015 21:21:38 +0200, lee wrote: > > > > > How do you remember these keys? > > > > BUSIER backwards, or bookmark > > http://en.wikipedia.org/wiki/Magic_SysRq_key in your phone's browser :) > > Phone's browser? If

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-14 Thread lee
Neil Bothwick writes: > On Tue, 07 Apr 2015 21:21:38 +0200, lee wrote: > >> > It will in many cases (probably most). Usually it's xorg that >> > "freezes" the keyboard, in those cases ctrl-alt-sysrq-r followed by >> > ctrl-alt-f1 should get you to the VT where you can restart xorg. I >> > think t

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-07 Thread Neil Bothwick
On Tue, 07 Apr 2015 21:21:38 +0200, lee wrote: > > It will in many cases (probably most). Usually it's xorg that > > "freezes" the keyboard, in those cases ctrl-alt-sysrq-r followed by > > ctrl-alt-f1 should get you to the VT where you can restart xorg. I > > think the kernel needs to be completel

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-07 Thread Fernando Rodriguez
On Tuesday, April 07, 2015 9:21:38 PM lee wrote: > Fernando Rodriguez writes: > > > On Saturday, April 04, 2015 2:41:12 PM lee wrote: > >> I always can't remember which keys to press with that, so I have it > >> disabled. > >> > >> And when the keyboard is unresponsive, it won't work. > > > > It

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-07 Thread lee
lee writes: > Living in the past is not onwardly a good default. s/is not onwardly/seldwhen is/

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-07 Thread lee
Rich Freeman writes: > On Sat, Apr 4, 2015 at 8:41 AM, lee wrote: >> >> Oh I mean the *default*. We should not need to change the inittab to >> have it disabled by default. >> >> Isn't commenting out the whole line sufficient? >> > > Uh, commenting out the line is changing the inittab (and I ha

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-07 Thread lee
Fernando Rodriguez writes: > On Saturday, April 04, 2015 2:41:12 PM lee wrote: >> I always can't remember which keys to press with that, so I have it >> disabled. >> >> And when the keyboard is unresponsive, it won't work. > > It will in many cases (probably most). Usually it's xorg that "freeze

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-05 Thread Dale
Rich Freeman wrote: > On Sun, Apr 5, 2015 at 3:27 AM, Dale wrote: >> Neil Bothwick wrote: >>> On Sat, 04 Apr 2015 14:41:12 +0200, lee wrote: >>> > On Linux now there's the Magic SysRq Key feature for that. I always can't remember which keys to press with that, so I have it disabled.

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-05 Thread Rich Freeman
On Sun, Apr 5, 2015 at 3:27 AM, Dale wrote: > Neil Bothwick wrote: >> On Sat, 04 Apr 2015 14:41:12 +0200, lee wrote: >> On Linux now there's the Magic SysRq Key feature for that. >>> I always can't remember which keys to press with that, so I have it >>> disabled. >> BUSIER backwards. >> >>>

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-05 Thread Dale
Neil Bothwick wrote: > On Sat, 04 Apr 2015 14:41:12 +0200, lee wrote: > >>> On Linux now there's the Magic SysRq Key feature for that. >> I always can't remember which keys to press with that, so I have it >> disabled. > BUSIER backwards. > >> And when the keyboard is unresponsive, it won't work.

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-04 Thread Neil Bothwick
On Sat, 04 Apr 2015 14:41:12 +0200, lee wrote: > > On Linux now there's the Magic SysRq Key feature for that. > > I always can't remember which keys to press with that, so I have it > disabled. BUSIER backwards. > And when the keyboard is unresponsive, it won't work. It usually does. The ker

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-04 Thread Fernando Rodriguez
On Saturday, April 04, 2015 2:41:12 PM lee wrote: > I always can't remember which keys to press with that, so I have it > disabled. > > And when the keyboard is unresponsive, it won't work. It will in many cases (probably most). Usually it's xorg that "freezes" the keyboard, in those cases ctrl-

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-04 Thread Rich Freeman
On Sat, Apr 4, 2015 at 8:41 AM, lee wrote: > > Oh I mean the *default*. We should not need to change the inittab to > have it disabled by default. > > Isn't commenting out the whole line sufficient? > Uh, commenting out the line is changing the inittab (and I have no idea if it works or not offh

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-04-04 Thread lee
Fernando Rodriguez writes: > On Sunday, March 29, 2015 12:23:00 PM lee wrote: >> Philip Webb writes: >> What's the last time you pressed Ctrl+Alt+Del and it actually worked? >> It's a legacy thing from times when freezes/crashes were common and when >> it did work and was useful. >> >> Nowadays

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-31 Thread Tom H
On Tue, Mar 31, 2015 at 5:42 AM, Emanuele Rusconi wrote: >>> >>> Easy to remember as "Reboot Even If System Utterly Broken" >> >> I remember it as the reverse of "busier". > > A variant I read somewhere is "Raising (Skinny) Elephants Is So Utterly > Boring". > "Skinny" is an extra optional sync,

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-31 Thread Emanuele Rusconi
> > Easy to remember as "Reboot Even If System Utterly Broken" > > I remember it as the reverse of "busier". > A variant I read somewhere is "Raising (Skinny) Elephants Is So Utterly Boring". "Skinny" is an extra optional sync, it doesn't hurt and makes the mnemonic funnier.

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-31 Thread Tom H
On Tue, Mar 31, 2015 at 1:57 AM, Fernando Rodriguez wrote: > On Linux now there's the Magic SysRq Key feature for that. If enabled (I think > it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these keys > even if your kernel panics or freezes in most cases (ctrl may only be nee

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-30 Thread Fernando Rodriguez
On Tuesday, March 31, 2015 1:57:32 AM Fernando Rodriguez wrote: > On Sunday, March 29, 2015 12:23:00 PM lee wrote: > > Philip Webb writes: > > What's the last time you pressed Ctrl+Alt+Del and it actually worked? > > It's a legacy thing from times when freezes/crashes were common and when > > it d

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-30 Thread Fernando Rodriguez
On Sunday, March 29, 2015 12:23:00 PM lee wrote: > Philip Webb writes: > What's the last time you pressed Ctrl+Alt+Del and it actually worked? > It's a legacy thing from times when freezes/crashes were common and when > it did work and was useful. > > Nowadays, when you're pressing it, usually no

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-29 Thread lee
Philip Webb writes: > 150322 Peter Humphrey wrote: >> On Sunday 22 March 2015 13:04:44 Nikos Chantziaras wrote: I can reboot the system when I am a user by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down ? Strange >>> The thinking is that you can unplug the machine

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-26 Thread Emanuele Rusconi
On 26 March 2015 at 17:28, Francisco Ares wrote: > > > 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

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-26 Thread Francisco Ares
2015-03-26 13:13 GMT-03:00 Hans : > 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 fro

[gentoo-user] Re: How to poweroff the system from user?

2015-03-26 Thread Hans
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.

[gentoo-user] Re: How to poweroff the system from user?

2015-03-23 Thread Nikos Chantziaras
On 23/03/15 14:16, Matti Nykyri wrote: On Mar 23, 2015, at 14:13, Nikos Chantziaras wrote: On 23/03/15 11:46, Peter Humphrey wrote: The consensus seems to be that there's no point in trying to prevent a user from rebooting the machine, and I'm happy to go along with that. The remaining questi

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-23 Thread Matti Nykyri
> On Mar 23, 2015, at 14:13, Nikos Chantziaras wrote: > >> On 23/03/15 11:46, Peter Humphrey wrote: >> The consensus seems to be that there's no point in trying to prevent a user >> from rebooting the machine, and I'm happy to go along with that. >> >> The remaining question is: why is the user

[gentoo-user] Re: How to poweroff the system from user?

2015-03-23 Thread Nikos Chantziaras
On 23/03/15 11:46, Peter Humphrey wrote: The consensus seems to be that there's no point in trying to prevent a user from rebooting the machine, and I'm happy to go along with that. The remaining question is: why is the user not allowed to halt it? Because there's no keyboard shortcut for halt

[gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Nikos Chantziaras
On 22/03/15 22:12, Philip Webb wrote: 150322 Nikos Chantziaras wrote: On 22/03/15 17:58, Philip Webb wrote: If you have multiple users, you don't want some rogue user rebooting randomly You can't stop a local user from doing that. As mentioned, the reset button works just fine. You really do

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Matti Nykyri
> On Mar 22, 2015, at 17:58, Philip Webb wrote: > > 150322 Peter Humphrey wrote: >> On Sunday 22 March 2015 13:04:44 Nikos Chantziaras wrote: I can reboot the system when I am a user by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down ? Strange >>> The thinking is t

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Philip Webb
150322 Nikos Chantziaras wrote: > On 22/03/15 17:58, Philip Webb wrote: >> If you have multiple users, >> you don't want some rogue user rebooting randomly > You can't stop a local user from doing that. > As mentioned, the reset button works just fine. You really do want > those users to reboot th

[gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Nikos Chantziaras
On 22/03/15 17:58, Philip Webb wrote: Because of that, the default of allowing ctrl+alt+del for local users makes more sense than disabling it. That doesn't follow : if you have multiple users, you don't want some rogue user rebooting randomly You can't stop a local user from doing that. As m

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Philip Webb
150322 Peter Humphrey wrote: > On Sunday 22 March 2015 13:04:44 Nikos Chantziaras wrote: >>> I can reboot the system when I am a user by Ctrl+Alt+Delete. >>> The user can reboot the system, but can't shut down ? Strange >> The thinking is that you can unplug the machine >> or press the hardware re

Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Peter Humphrey
On Sunday 22 March 2015 13:04:44 Nikos Chantziaras wrote: > On 22/03/15 12:30, Peter Humphrey wrote: > > On Saturday 21 March 2015 16:20:17 Jc García wrote: > >>> Interesting. But as I said ealier, I can reboot the system when I am a > >>> user by Ctrl+Alt+Delete. The user can reboot the system, bu

[gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Nikos Chantziaras
On 22/03/15 12:30, Peter Humphrey wrote: On Saturday 21 March 2015 16:20:17 Jc García wrote: Interesting. But as I said ealier, I can reboot the system when I am a user by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? Strange It's not strange, `man 2 reboot`. It's a def

[gentoo-user] Re: How to poweroff the system from user?

2015-03-22 Thread Nikos Chantziaras
On 21/03/15 21: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 you have dbus running (KDE, Gnome and others automatically use it), then you can shut down with som