:: Re: [DNG] polkit - which one?
Góra strony
Delete this message
Reply to this message
Autor: emninger
Data:  
Dla: dng
Temat: Re: [DNG] polkit - which one?
Am Sat, 18 Jun 2016 08:49:39 +0000
schrieb Didier Kryn <kryn@???>:

Salut Didier!

>      I have created two launcher files invoking /sbin/halt and 
> /sbin/reboot, with sensible icons, and then dragged them into the 
> pannels of all 4 users of the desktop. And I have added the following 
> line to the sudoers file:

>
> ALL    myhostname = (root) NOPASSWD: /sbin/halt, /sbin/reboot, 
> /sbin/shutdown


i've pretty much the same (only i use a pre-fabricated tool, cb-exit, a
logout tool of which once was done for crunchbang, a python script btw).

I set the line in sudoers like yours, yes: i used visudo! ;), but still
it does not work: shutdown, reboot, halt still require root with a
password. I am the only user on this machine

Reflecting on it: should there be created a group whereto user should
be added or somethin thatlike. In any case, user is added to the group
sudo.