Gentoo Archives: gentoo-user

From: German <gentgerman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to poweroff the system from user?
Date: Sun, 22 Mar 2015 06:32:12
Message-Id: 20150322023200.f8517de68133bf9f40e1e01b@gmail.com
In Reply to: Re: [gentoo-user] How to poweroff the system from user? by Fernando Rodriguez
1 On Sat, 21 Mar 2015 18:51:58 -0400
2 Fernando Rodriguez <frodriguez.developer@×××××××.com> wrote:
3
4 > On Saturday, March 21, 2015 4:58:42 PM German wrote:
5 > > On Sat, 21 Mar 2015 16:32:25 -0400
6 > > Philip Webb <purslow@××××××××.net> wrote:
7 > >
8 > > > 150321 German wrote:
9 > > > > If I run poweroff from root, the system shuts down.
10 > > > > When I run poweroff from user -- command not found.
11 > > > > How to shut down the system from user ?
12 > > >
13 > > > I'ld say "Don't" : it's contrary to the principles of Unix,
14 > > > which separate the roles of sysadmin (root) from those of ordinary users.
15 > > >
16 > > > To shut down, I first exit Fluxbox via its menu,
17 > > > then 'su' + root password, then alias 'down' = 'shutdown -h now'.
18 > > > That observes the proper roles + ceremonies (smile).
19 > >
20 > > Interesting. But as I said ealier, I can reboot the system when I am a user
21 > by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down?
22 > Strange
23 > > >
24 >
25 > Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local session (if
26 > there's no other users logged in locally).
27
28 /sbin/poweroff says "Must be a superuser" :(
29 >
30 > Like I said, /sbin is only on the search path for root by default on gentoo.
31 >
32 > --
33 > Fernando Rodriguez
34 >
35
36
37 --
38 German <gentgerman@×××××.com>

Replies

Subject Author
Re: [gentoo-user] How to poweroff the system from user? Matti Nykyri <matti.nykyri@×××.fi>
Re: [gentoo-user] How to poweroff the system from user? microcai <microcai@×××××××××××××.org>