Questions tagged [consolekit]
20 questions
46
votes
1 answer
What are ConsoleKit and PolicyKit? How do they work?
I have seen that recent GNU/Linux are using ConsoleKit and PolicyKit. What are they for? How do they work?
The best answer should explain what kind of problem each one tries to solve, and how they manage to solve it.
I am a long-time GNU/Linux user,…
Denilson Sá Maia
- 1,707
- 2
- 13
- 14
10
votes
2 answers
console-kit-daemon Hogging CPU and RAM
We have a system that's been a bit sluggish. top reports that console-kit-daemon takes anywhere from 18-30% CPU and about 50% memory. There are only two users logged in, one on X and one via ssh.
Any ideas how to resolve this?
Running Debian. uname…
Michael Todd
- 203
- 1
- 2
- 6
8
votes
1 answer
How to shutdown with consolekit without sysvinit (but with systemd)
I have systemd (and no sysvinit) installed on a Arch Linux box. However, I cannot shutdown/reboot with consolekit (dbus interface). # systemctl {shutdown,reboot} work just fine, so I guess it's because consolekit doesn't know how to contact the pid…
yuyichao
- 667
- 6
- 14
7
votes
2 answers
How can I activate the current session in ConsoleKit?
I have a live Debian Squeeze system on a USB drive, containing a script I use to image another drive. This script uses udisks to mount a drive by label, but it doesn't work over a serial console. The reason is that the session associated with the…
detly
- 5,020
- 6
- 23
- 29
7
votes
1 answer
What is the difference between a system with consolekit and the one without it?
First of all, I'm using Debian testing system with standalone Openbox. I don't have systemd, just sysvinit, and I certainly won't use systemd .
Yesterday my Debian box started returning messages like the ones below:
Jun 14 18:08:10 morfikownia…
Mikhail Morfikov
- 10,309
- 19
- 69
- 104
6
votes
1 answer
How do DE's call ACPI functions?
Okay, first off, this is not a problem I am facing, but I would like to understand this better.
If I wish to shutdown / reboot my machine from the command line I need to call:
$ sudo poweroff
$ sudo reboot
That is, I need root privileges to make…
darnir
- 4,429
- 1
- 20
- 33
6
votes
3 answers
Can it harm if I shutdown without closing applications?
Can it hurt if I shut down my machine without closing all programs? I normally close all of them by hand, but have heard from others that this is really not necessary anymore (i.e. Linux will take care of proper closing of programs before shutting…
user
- 915
- 7
- 27
- 38
5
votes
2 answers
What's the difference between consolekit and elogind?
ConsloeKit is the traditional mechanism for tracking user sessions on Linux. eLogind has similar functionality, but is based on systemd and "independentized".
What are the differences in their functionality/feature set? What are their pros and cons?
einpoklum
- 8,772
- 19
- 65
- 129
4
votes
3 answers
How do I shut down a system through a ConsoleKit DBus message as user?
I found the following command line to shut down a Debian/GNU Linux system
dbus-send \
--system \
--dest=org.freedesktop.ConsoleKit \
--type=method_call \
--print-reply \
--reply-timeout=2000 \
/org/freedesktop/ConsoleKit/Manager \
…
enzotib
- 50,671
- 14
- 120
- 105
3
votes
0 answers
Restricting D-Bus access to the logged-in user via ConsoleKit or systemd
I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?
Ignacio Vazquez-Abrams
- 44,857
- 7
- 93
- 100
3
votes
1 answer
Schedule halt using ConsoleKit and Dbus
I have been playing with Dbus (versions 1.4.0, in Ubuntu 10.10 and 1.4.14) and ConsoleKit (versions 0.4.1 and 0.4.5) to reboot or halt my computer without being a superuser. Everything works fine in both versions.
If I execute the commands detailed…
Savir
- 1,221
- 1
- 17
- 24
3
votes
1 answer
Polkit/Consolekit is not working in openRC
some time ago I moved from Systemd to OpenRC. It was very different, to be able to use audio and
webcam I had to add my user to the audio, optical and video group. As some software uses pkexec to be run as
superuser, when I opened them (Because I…
Megver83
- 301
- 3
- 11
3
votes
0 answers
Giving a user access to the webcam
I have a user that I use to run untrusted programs (more specifically, Skype). I would like to give that user access to the webcam.
I am using Debian, where the standard way to do this is to put users in the video group. However, it seems like this…
a3nm
- 8,978
- 5
- 28
- 36
3
votes
3 answers
disable console-kit logging
My X login manager (slim) has brought with it a dependency on a package consolekit I don't know what consolekit is good for, other login managers such as wdm do not need it.
But anyway, the problem I am having is that consolekit is logging lots of…
Martin Vegter
- 69
- 66
- 195
- 326
2
votes
3 answers
How to test if a program was invoked by a console user?
I've built an application that emulates a HID device via /dev/uhid on linux. My application is broken into two programs. First, a very simple setuid root binary that opens /dev/uhid and emulates just the one device, passing messages back and forth…
user3188445
- 5,107
- 3
- 21
- 38