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
New to Apple products (finally) - can I use my Itunes account with multiple products e.g. Iphone and Ipad?Oh yes! Apple will be happy for you to buy as many Apple products as you can afford. As and when needed, each can be given its own selections of [More]
InDesign CS6 on a Mac OS 10.8 is crashing 75% of the time on startupPost your crash report on Pastebin.com and put a link here.Read other 2 answers [More]
I bought Arduino Mega 2560. I have installed Arduino IDE 1.7.3. I am using Windows 7 64bit version and Labview 2012. I started working after the compilation of LIFA_Base File with Arduino IDE and with labview. My application is: I have connected my a [More]
Dear friends, We are planning some materials with Subcontracting scenario using CTM Facing issue when same vendor is executing sub-con process of same material for multiple plants Total demand of lower level material is flowing to a single plant inst [More]
this is a copy off the email i sent them on tuesday 16/9/14 This was my reply to the other half off sony i dont know if you got this one..its taking a week to get a reply again and im in ugrent help please i was really quite impressed of the turn aro [More]
Hi experts; I have created a variant of checkout ME21N via SHD0 on development environment. In this variant I blanked the imputation column because I put a value. Then I set the purchase document type. I've attached this variant ZME21N transaction. A [More]
I burned Solaris10 U6 CD1 to a CD-ROM. Inserted into a SunFire v245 server and started the installation. I copied the content of Solaris10 U6 DVD to a another Solaris10 server, and shared the copied directory through NFS. During the installation i ch [More]
I've not logged into my Orange account for sometime. I just tried it and can't get in. I've changed my password but just get 'Opps there's a problem our end' What can I do ?Hi  Welcome to the EE Community! Have you tried clearing your cache & cooking [More]
Hy! The problem is, that one of my cores is always being used 100% by the system, the other core behaves normally. "kernel_task" is eating up to 105 (think it's %) of the cpu. I got an average 70C temperature, with the fans aorund 6200rpm. Is th [More]
When I crop a photo, Aperture distorts the photo, locks up, then shuts down.  I have cropped before without problem.  What am I doing wrong?If your profile is correct and you are running Aperture 2 on Mavericks then you are doing nothing wrong, Apert [More]