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

2015-04-04 Thread lee
Walter Dnes waltd...@waltdnes.org writes: On Sun, Mar 29, 2015 at 12:43:12PM +0200, lee wrote That leaves the question why a user who isn't even logged in should be able to reboot, which IIRC they can by default with Ctrl+Alt+Del. Such users shouldn't be allowed to do anything but to log in.

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

2015-03-30 Thread Mick
On Monday 30 Mar 2015 01:32:21 Walter Dnes wrote: On Sun, Mar 29, 2015 at 03:30:07PM -0400, Rich Freeman wrote With TPM, full-disk encryption, and a verified boot path, you could actually protect against that scenario (they'd have to tear apart the TPM chip and try to access the

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

2015-03-30 Thread Mick
On Monday 30 Mar 2015 01:52:14 Rich Freeman wrote: On Sun, Mar 29, 2015 at 8:32 PM, Walter Dnes waltd...@waltdnes.org wrote: Be careful what you wish for. I have my doubts that TPM chips would boot linux with Microsoft offering volume discounts to OEMS. Call me cynical. TPM chips

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

2015-03-30 Thread Rich Freeman
On Mon, Mar 30, 2015 at 4:09 AM, Mick michaelkintz...@gmail.com wrote: On Monday 30 Mar 2015 01:52:14 Rich Freeman wrote: On Sun, Mar 29, 2015 at 8:32 PM, Walter Dnes waltd...@waltdnes.org wrote: Be careful what you wish for. I have my doubts that TPM chips would boot linux with

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

2015-03-29 Thread Walter Dnes
On Sun, Mar 29, 2015 at 03:30:07PM -0400, Rich Freeman wrote With TPM, full-disk encryption, and a verified boot path, you could actually protect against that scenario (they'd have to tear apart the TPM chip and try to access the non-volatile storage directly, and the chips are specifically

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

2015-03-29 Thread Rich Freeman
On Sun, Mar 29, 2015 at 8:32 PM, Walter Dnes waltd...@waltdnes.org wrote: Be careful what you wish for. I have my doubts that TPM chips would boot linux with Microsoft offering volume discounts to OEMS. Call me cynical. TPM chips don't control what boots. They just accept the hash of

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

2015-03-29 Thread Rich Freeman
On Sun, Mar 29, 2015 at 8:33 AM, Jorge Almeida jjalme...@gmail.com wrote: On Sun, Mar 29, 2015 at 12:55 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: and dump people keep talking nonsencely that sysvinit is enough while it cannot even handle reboot for normal user. sad. it can.

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

2015-03-29 Thread Jorge Almeida
On Sun, Mar 29, 2015 at 12:55 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: and dump people keep talking nonsencely that sysvinit is enough while it cannot even handle reboot for normal user. sad. it can. Did for decaded. Dumb systemd fanbois spouting their lies everywhere.

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

2015-03-29 Thread lee
Peter Humphrey pe...@prh.myzen.co.uk writes: The remaining question is: why is the user not allowed to halt it? It's because a user who wants to somewhat permanently disrupt the services the machine provides would need to remain at the keyboard to continue to reboot it and thus can be caught

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

2015-03-29 Thread Volker Armin Hemmann
Am 26.03.2015 um 01:46 schrieb microcai: on Saturday 21 March 2015 13:58:45,Canek Peláez Valdés wrote: On Sat, Mar 21, 2015 at 1:47 PM, 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

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

2015-03-29 Thread Walter Dnes
On Sun, Mar 29, 2015 at 12:43:12PM +0200, lee wrote That leaves the question why a user who isn't even logged in should be able to reboot, which IIRC they can by default with Ctrl+Alt+Del. Such users shouldn't be allowed to do anything but to log in. As the old saying goes... If you don't

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

2015-03-29 Thread Rich Freeman
On Sun, Mar 29, 2015 at 7:20 PM, Walter Dnes waltd...@waltdnes.org wrote: On Sun, Mar 29, 2015 at 12:43:12PM +0200, lee wrote That leaves the question why a user who isn't even logged in should be able to reboot, which IIRC they can by default with Ctrl+Alt+Del. Such users shouldn't be

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

2015-03-26 Thread Tom H
On Wed, Mar 25, 2015 at 8:53 PM, microcai micro...@fedoraproject.org wrote: on Sunday 22 March 2015 02:32:00,German wrote: /sbin/poweroff says Must be a superuser :( then it's high time for you to trash away sysvint and openrc, and try systemd!!! I doubt that Fedora developers and users

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

2015-03-25 Thread microcai
on Saturday 21 March 2015 13:58:45,Canek Peláez Valdés wrote: On Sat, Mar 21, 2015 at 1:47 PM, 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

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

2015-03-25 Thread microcai
on Sunday 22 March 2015 02:32:00,German wrote: On Sat, 21 Mar 2015 18:51:58 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Saturday, March 21, 2015 4:58:42 PM German wrote: On Sat, 21 Mar 2015 16:32:25 -0400 Philip Webb purs...@ca.inter.net wrote: 150321

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

2015-03-25 Thread wabenbau
German gentger...@gmail.com 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 I modified a line in /etc/inittab so that I can shutdown my system as user with Ctrl+Alt+Del: #

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

2015-03-23 Thread Rich Freeman
On Mon, Mar 23, 2015 at 5:46 AM, Peter Humphrey pe...@prh.myzen.co.uk wrote: The remaining question is: why is the user not allowed to halt it? Keep in mind there are many ways that a unix-like OS can be used. It could be running on a laptop, or it could be running on a multi-user system

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

2015-03-23 Thread Emanuele Rusconi
On 23 March 2015 at 10:46, Peter Humphrey pe...@prh.myzen.co.uk wrote: On Sunday 22 March 2015 14:36:36 Jc García wrote: 2015-03-22 4:30 GMT-06:00 Peter Humphrey pe...@prh.myzen.co.uk: On Saturday 21 March 2015 16:20:17 Jc García wrote: Interesting. But as I said ealier, I can reboot

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

2015-03-23 Thread Nicol TAO
just security problem. server should not be that easy to be interrupted! 在2015年03月23日 17:46,Peter Humphrey 写道: On Sunday 22 March 2015 14:36:36 Jc García wrote: 2015-03-22 4:30 GMT-06:00 Peter Humphrey pe...@prh.myzen.co.uk: On Saturday 21 March 2015 16:20:17 Jc García wrote: Interesting.

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

2015-03-23 Thread Peter Humphrey
On Sunday 22 March 2015 14:36:36 Jc García wrote: 2015-03-22 4:30 GMT-06:00 Peter Humphrey pe...@prh.myzen.co.uk: 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

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

2015-03-22 Thread Matti Nykyri
On Mar 22, 2015, at 9:11, Alexander Kapshuk alexander.kaps...@gmail.com wrote: On Sun, Mar 22, 2015 at 9:06 AM, German gentger...@gmail.com wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:

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

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:30:49 AM German wrote: On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar

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

2015-03-22 Thread German
On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:

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

2015-03-22 Thread German
On Sun, 22 Mar 2015 03:35:49 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:30:49 AM German wrote: On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German

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

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 9:35:46 AM Matti Nykyri wrote: On Mar 22, 2015, at 9:31, Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22,

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

2015-03-22 Thread German
On Sun, 22 Mar 2015 09:35:46 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 9:31, Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi

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

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote: /sbin/poweroff says Must be a superuser :( Did you read any of the previous messages?

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

2015-03-22 Thread Matti Nykyri
On Mar 22, 2015, at 9:31, Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:

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

2015-03-22 Thread Peter Humphrey
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 defined behavior. I'm with German here.

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

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote: /sbin/poweroff says Must be a superuser :( Did you read any of the previous messages?

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

2015-03-22 Thread Matti Nykyri
On Mar 22, 2015, at 9:30, German gentger...@gmail.com wrote: On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On

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

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:30:49 AM German wrote: On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar

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

2015-03-22 Thread German
On Sun, 22 Mar 2015 03:47:13 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:30:49 AM German wrote: On Sun, 22 Mar 2015 03:19:50 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Sunday, March 22, 2015 3:06:59 AM German

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

2015-03-22 Thread Jc García
2015-03-22 4:30 GMT-06:00 Peter Humphrey pe...@prh.myzen.co.uk: 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,

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

2015-03-22 Thread German
On Sat, 21 Mar 2015 18:51:58 -0400 Fernando Rodriguez frodriguez.develo...@outlook.com wrote: On Saturday, March 21, 2015 4:58:42 PM German wrote: On Sat, 21 Mar 2015 16:32:25 -0400 Philip Webb purs...@ca.inter.net wrote: 150321 German wrote: If I run poweroff from root, the system

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

2015-03-22 Thread Matti Nykyri
On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote: /sbin/poweroff says Must be a superuser :( Did you read any of the previous messages? They told you that you have to have consolekit and polkit installed and configured for this to work! Also the use of sudo is another choice.

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

2015-03-22 Thread German
On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote: /sbin/poweroff says Must be a superuser :( Did you read any of the previous messages? They told you that you have to have consolekit and polkit

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

2015-03-22 Thread Alexander Kapshuk
On Sun, Mar 22, 2015 at 9:06 AM, German gentger...@gmail.com wrote: On Sun, 22 Mar 2015 08:49:54 +0200 Matti Nykyri matti.nyk...@iki.fi wrote: On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote: /sbin/poweroff says Must be a superuser :( Did you read any of the

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

2015-03-22 Thread Walter Dnes
On Sun, Mar 22, 2015 at 03:30:49AM -0400, German wrote Thanks, I decide to go with sudo on this one. However when I try to run it, it says: Username is not in the sudoers file. Where is this file located and how can I add the user to it? Thanks Here's how it works. emerge -pv sudo and

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

2015-03-21 Thread German
On Sat, 21 Mar 2015 21:34:51 +0200 Alexander Kapshuk alexander.kaps...@gmail.com wrote: On Sat, Mar 21, 2015 at 9:26 PM, German gentger...@gmail.com 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

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

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 3:26:56 PM 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 The command not found part is because /sbin and /usr/sbin and on gentoo it's

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

2015-03-21 Thread Jc García
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

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

2015-03-21 Thread Rich Freeman
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

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

2015-03-21 Thread Canek Peláez Valdés
On Sat, Mar 21, 2015 at 1:47 PM, 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

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

2015-03-21 Thread Alexander Kapshuk
On Sat, Mar 21, 2015 at 9:34 PM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: On Sat, Mar 21, 2015 at 9:26 PM, German gentger...@gmail.com 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

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

2015-03-21 Thread German
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

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

2015-03-21 Thread Alexander Kapshuk
On Sat, Mar 21, 2015 at 9:26 PM, German gentger...@gmail.com 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 -- German gentger...@gmail.com poweroff(1) says: If you're

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

2015-03-21 Thread Philip Webb
150321 German wrote: If I run poweroff from root, the system shuts down. When I run poweroff from user -- command not found. How to shut down the system from user ? I'ld say Don't : it's contrary to the principles of Unix, which separate the roles of sysadmin (root) from those of ordinary

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

2015-03-21 Thread Rich Freeman
On Sat, Mar 21, 2015 at 4:32 PM, Philip Webb purs...@ca.inter.net wrote: I'ld say Don't : it's contrary to the principles of Unix, which separate the roles of sysadmin (root) from those of ordinary users. There are a couple of schools of thought there. One that differs from what you

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

2015-03-21 Thread German
On Sat, 21 Mar 2015 16:32:25 -0400 Philip Webb purs...@ca.inter.net wrote: 150321 German wrote: If I run poweroff from root, the system shuts down. When I run poweroff from user -- command not found. How to shut down the system from user ? I'ld say Don't : it's contrary to the

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

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 9:35:44 PM Alexander Kapshuk wrote: On Sat, Mar 21, 2015 at 9:34 PM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: On Sat, Mar 21, 2015 at 9:26 PM, German gentger...@gmail.com wrote: If I run poweroff from root, the system shuts down, however when I

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

2015-03-21 Thread Jc García
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 defined behavior.

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

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 4:58:42 PM German wrote: On Sat, 21 Mar 2015 16:32:25 -0400 Philip Webb purs...@ca.inter.net wrote: 150321 German wrote: If I run poweroff from root, the system shuts down. When I run poweroff from user -- command not found. How to shut down the system

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

2015-03-21 Thread Emanuele Rusconi
Ctrl-Alt-Del can be set to do what you want. I have this in my /etc/inittab: ca:12345:ctrlaltdel:/sbin/shutdown -P now This way Ctrl-Alt-Del calls power off instead of reboot. So to shutdown I just exit from Openbox and press Ctrl-Alt-Del. -- Emanuele Rusconi

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

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 11:52:45 PM Emanuele Rusconi wrote: Ctrl-Alt-Del can be set to do what you want. I have this in my /etc/inittab: ca:12345:ctrlaltdel:/sbin/shutdown -P now This way Ctrl-Alt-Del calls power off instead of reboot. So to shutdown I just exit from Openbox and