Root priviledges needed to poweroff

Adam Pribyl pribyl at lowlevel.cz
Wed Jul 25 18:19:53 UTC 2012


On Wed, 25 Jul 2012, ergodic wrote:

> Thanks for your reply Adam.
> Why then reboot does not complain? Reboot executes immediatly.
> All those directives  link to consolehelper or to systemctl, which should ask for authentication if another user is logged.

Well then the reboot is broken?

>
> ----- Original Message -----
> On Mon, 23 Jul 2012, ergodic wrote:
>
>> Executing poweroff in F-17 (x86_64 up to date) defaults to the "Authentication is required for powering off the system while other users are logged in" snippet.
>>
>> Only one user (user1) actually logged in, however results from "who" and "users" show otherwise:
>>
>> # who
>> user1 :0 2012-07-23 13:04 (:0)
>> user1 pts/0 2012-07-23 14:39 (:0)
>> root pts/1 2012-07-23 14:39 (:0)
>> root pts/2 2012-07-23 14:39 (:0)
>> root pts/3 2012-07-23 14:39 (:0)
>> root pts/4 2012-07-23 14:39 (:0)
>
> Those are IMHO some term started with root privileges. As soon as tehere 
> is a anybody else logged except the user which is going to poweroff, then 
> powerof complains about other user logged any - looks correct to me.
>
>
>> Is this correct or is it there a problem?
>>
>> Thanks in advance.
>>
>
> Adam Pribyl


More information about the test mailing list