Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
You mean block it from remote login (eg. ssh, telnet) user? – John Siu Dec 26 '12 at 20:09
No. I mean block it from other arbitrary processes that decide to connect to it. – Ignacio Vazquez-Abrams Dec 26 '12 at 20:12
D-Bus by default (debian/ubuntu) use unix socket, so there is no ip connection. On the other hand, dbus can be configured to only allow specific local users, is that what you looking for? – John Siu Dec 26 '12 at 20:15
I want to allow only a specific user, namely the one that is logged in at the console. – Ignacio Vazquez-Abrams Dec 26 '12 at 20:24
So you want to limit dbus connection NOT by name, NOT by group, but by the following 2 conditions: (1) user is currently login (2) user is login locally. – John Siu Dec 27 '12 at 3:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.