Sitemap

Amicuk Programming Answers

D-Bus: How can root access a user's started session?

-0001-11-30   Views:0

Advertisement

D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration. However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session. Example: #

D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration.
However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session.
Example:
# purple-remote 'setstatus?status=offline'
No existing libpurple instance detected.
(the command works fine from the logged in user's shell)
I've googled around a bit, and there was a hit about changing the euid of the shell, but changing this via zsh's EUID environment variable had no notable effect on the outcome.
Any ideas? I tried with sudo -u <username> but that doesn't help either.
Last edited by Natanji (2014-04-30 12:25:43)

The replay answer
Advertisement
D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration.
However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session.
Example:
# purple-remote 'setstatus?status=offline'
No existing libpurple instance detected.
(the command works fine from the logged in user's shell)
I've googled around a bit, and there was a hit about changing the euid of the shell, but changing this via zsh's EUID environment variable had no notable effect on the outcome.
Any ideas? I tried with sudo -u <username> but that doesn't help either.
Last edited by Natanji (2014-04-30 12:25:43)

Go to See the other 9 answers

D-Bus: How can root access a user's started session?

Category:DefaultRelease time:-0001-11-30Views:130

D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration. However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session. Example: #[More]

My macbook pro has a virus/trojan that is resetting the EFI via apci and it is getting root access privileges. It seems to be creating multiple aliases that bundle with rogue apps and preferences so it is very difficult to control or fix. Please help..

Category:DefaultRelease time:-0001-11-30Views:130

My macbook pro has a virus/trojan that is resetting the EFI via apci and it is getting root access privileges. It seems to be creating multiple aliases that bundle with rogue apps and preferences so it is very difficult to control or fix. Please help[More]

Need to run fmsedge process without root access

Category:DefaultRelease time:2015-10-11Views:130

1937396 On Linux, the fmsedge process needed to run without root access.I see that in the release notes new in this release: 1937396 On Linux, the fmsedge process needed to run without root access. However I have not found any documentaion on how to[More]

New user not authenticating, can't change/use root access

Category:DefaultRelease time:-0001-11-30Views:130

I have a two-fold problem. First, I'm am unable to add any new users to my standalone server. Actually, I can add them but they won't authenticate. Am using File Services, AFP and SMB, and Web services for sharing iCals. No home directories, no NetBo[More]

Can't enable root access in Lion 10.7.2

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I have read this Apple article on enabling root in Lion. It doesn't work for me. I did a fresh install of Lion 10.7.2 to a formatted drive from a USB thumbdrive. I ran Software Update until there were no more updates. When I open the "Directo[More]

Install JavaDB with no root access?

Category:DefaultRelease time:-0001-11-30Views:130

I cannot access my Linux server as root. That means that I cannot execute files. Is it possible for me to simply upload the JavaDB files and make it work as a database? Install it without root access? How about MySQL? Can I also do the same (just upl[More]

Does managing Oracle 10g RAC with ASM require full root access?

Category:DefaultRelease time:-0001-11-30Views:130

We currently have three entirely separate support areas, Unix, Storage and DBA. We're now considering using Oracle 10g RAC with ASM and as part of the assessment trying to work out if we can still draw similar support boundaries. I know that installi[More]

How I can get root access to my ST15i updated to ICS?

Category:DefaultRelease time:-0001-11-30Views:130

Recently I updated my ST15i to ICS I need root access as there is verry limited memory for application Solved! Go to Solution.{GUIDE} How to Root Xperia™ Smartphones Discussion guidelines. Message me or any other moderator to seek help regarding mode[More]

Makemkv requires root access? [SOLVED]

Category:DefaultRelease time:-0001-11-30Views:130

Okay. I've been running into a problem with makemkv and was wondering if anyone else had run into it and solved it. Basically, I have to run makemkv as root or with sudo. If I run it as a normal user, I get a dialog telling me "Application failed to[More]

How can web developers access /www and below w/o root access in Solaris 9

Category:DefaultRelease time:-0001-11-30Views:130

Our web servers are currently running on Solaris 9 and Apache 2.2.22. Our web developers do all their work in /www and below, which is owned by root. Is there anyway to give our web developers full access to /www and everything below it without givin[More]

Root access question

Category:DefaultRelease time:-0001-11-30Views:130

I have seen from some other postings that there is supposed to be a root password that is common to the N900. However when I try to use it, it doesn't seem to work. I see a lot of people suggesting the use of rootsh, but surely the same functionality[More]

Hot
Hi i am having problem of EPMA Server not getting started .... i installed many times and configured but problem still persists that's first time i am installing the EPM suite so plz bear me for any stupid questions..... I am using : Oracle Version: [More]
Hi, I have a problem with a HP Proliant ML350 G5, 2 weeks ago the server did shutdown unexpectedly i looked in the ACU and saw that the controller had a battery problem. I replaced the battery but the server keeps once or twice a day shutting down. I [More]
Hello All, Apex 3.1 I need the font size for a value returned from a Popup LOV to be much smaller. How would I modify the popup LOV template in order to change the font of the values in the LOV, or if not the LOV itself, the font size of the return i [More]
Hello structure experts, I am reading a set of DITA files into a specific FM template format, and there is one detail I cannot get to work properly. It should be possible to define column widths in a table, even if the DITA file does not include that [More]
Hi, I would like to know where is the problem in the payment of November. From your email , you can not take my money from my credit card, but my credit card is not empty and i'm not understand how it is possible and i reload my credit card a few day [More]
my watsapp is olways online... In nokia asha 302A fake AP? It should be done by manually adding a packet-data based AP with a non-existing AP name. bbao * If this post helped you, please click the white Kudo star. * If this post has solved your issue [More]
I'm just finishing a project and will be needing my harddrive space for the next one, and I'm wondering how best to store HDV footage NOT ON MY HARDDRIVE? (Not that I don't trust them, just don't like having all my eggs in one basket). There's not a [More]
Hi, In application after I perform an insert(data into the DB) operation, the application must then display a list . Currently this is not happening. I can perform the insert operation successfully , but after that i get the following exception: java [More]
When I try to go to google.ca I keep getting a notification telling me "this connection is untrusted" I don't understand why? I use google.ca every day with no problems and now this has been happening for 2 weeks. I can use google in Internet Ex [More]
We have built a Flex application compiled into an swf file that uses RSL linkage for the different framework libraries it needs. This has been done to reduce the size of the swf file. We are using the URL of the signed version of the library while bu [More]