Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Mon, 23 Mar 2015 09:47:06
Message-Id: 23787818.Bd5keXIqRP@wstn
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by "Jc García"
1 On Sunday 22 March 2015 14:36:36 Jc García wrote:
2 > 2015-03-22 4:30 GMT-06:00 Peter Humphrey <peter@××××××××××××.uk>:
3 > > On Saturday 21 March 2015 16:20:17 Jc García wrote:
4 > >> > Interesting. But as I said ealier, I can reboot the system when I am
5 > >> > a
6 > >> > user by Ctrl+Alt+Delete. The user can reboot the system, but can't
7 > >> > shut
8 > >> > down? Strange
9 > >>
10 > >> It's not strange, `man 2 reboot`. It's a defined behavior.
11 > >
12 > > I'm with German here. Being designed that way doesn't stop it being
13 > > strange.
14 > I see it as a last resource available for rebooting under any
15 > circumstances( Similar to what you can do with Sysrq).
16 >
17 > > Consider: I'm an ordinary user sitting at a terminal. I'm not allowed to
18 > > halt the machine, but I am allowed to reboot it into perhaps some quite
19 > > other configuration. Or I can keep rebooting it over and again,
20 > > effectively preventing the machine from doing its job. How does that
21 > > make sense?
22 > It doesn't and that's why it's configurable, if you are in a high
23 > security requiring environment, you disable it.
24
25 The consensus seems to be that there's no point in trying to prevent a user
26 from rebooting the machine, and I'm happy to go along with that.
27
28 The remaining question is: why is the user not allowed to halt it?
29
30 --
31 Rgds
32 Peter.

Replies

Subject Author
回复:Re: [gentoo-user] How to poweroff the system from user? Nicol TAO <nicol_tao@×××.com>
Re: [gentoo-user] How to poweroff the system from user? Rich Freeman <rich0@g.o>
[gentoo-user] Re: How to poweroff the system from user? Nikos Chantziaras <realnc@×××××.com>
Re: [gentoo-user] How to poweroff the system from user? Emanuele Rusconi <emarsk@×××××.com>
Re: [gentoo-user] How to poweroff the system from user? lee <lee@××××××××.de>