Le 18/06/2016 13:12, [email protected] a écrit :
Am Sat, 18 Jun 2016 08:49:39 +0000
schrieb Didier Kryn <[email protected]>:
Salut Didier!
Hallo Emninger :-)
I'm using xfce4 DE on Devuan Jessie and have removed all
policy-kit* packages and package-kit. The halt and reboot buttons of
the logout menu of Xfce do not work anymore. They certainly invoke
some command to ask permission to policy-kit which denies it if
anyone else is logged on. Not something I need or want on a desktop.
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
What you describe, is exactly my situation. I'll try a bit that way.
Just guessing in the dark, i'm under the impression that *polkit and
dbus are closely depending on another ...
I think polkit depends on dbus.
It's to see and to try, if there are losses without dbus. E.g. i know,
that thunar in some conditions needs to be started by dbus-launch to
correctly mount (usb)devices on the fly ...
I believe freedesktop.org has adopted dbus to distribute
information, eg from the hotpluger.
In any case, i'm very interested in a systemwide solution to halt,
shutdown, restart, suspend the system. I thought it could be done by an
append to sudoers (i followed the arch linux instruction, but it seem
to *NOT* work). Your line does it?
Sure it does. Why not? sudo is the legacy Unix command to handle
fine-grained priviledge escalation. No need for policykit.
Don't edit /etc/sudoers directly, invoke visudo for that, it will
check the validity of the file before accepting it. To let it invoke
your preferred editor, first export EDITOR foo.
As for the login-manager it should be possible to integrate it (at
least i think in lxdm that can be done?).
Dunno how to do that. Would be happy to learn.
Didier
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng