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
I have an array collection that was created from an XML file through the HTTP Service. One of the nodes in the XML file was product_number and I can display all of the items in this node in a datagrid so I know the array has the name of the node in i [More]
Nightmare trying to install software - have tried from CD and from web. Installation error Call to DriverPackageInstall returned error 1627 for package 'C\Program Files\HP\HP Photosmart 5520 series\Driver Store\Pipeline\hpvp109.inf' Any advice would [More]
Today I sync'd my phone before doing a restore. The sync went fine as well as the restore. When I attempted to restore my phone from the back up, it showed that it was last sync'd at 12:54PM which sounds about right when I sync'd it last. Well the is [More]
hi  when i using digital media crad ,it says very slow response and called not not responding and after 2-3 min its ok  and i if i try to move another picture it say the same . i m very fed up to hp pavillion g6 1159 laptop  ,  pls tell me if any sol [More]
Hi Does anyone have some documentation regarding the SAP interface with the Golden Tax, China system( chinese local tax software system) and any documentation relating to SAP, China local implementation in ECC 6.0 Thanks KrishnaHi,Krishna, As I know, [More]
Hi Can anybody help me with an explanation for the same code used in two different programs one showing error. The code  which shows  is correct  is as  below ( The code is written in method WDDOINIT). Data : v_Element type ref to If_Wd_Context_Eleme [More]
I installed a new hard drive yesterday, and used Time Machine to restore all the information from my old hard drive.  Today I tried to open iPhoto and had a message that it was not found so I used the install disk for iPhoto and reinstalled.  I have [More]
I have 69 .indd files created in CS5 (ver7) that are part of a "book". I have been trying to "print" this book to PDF so I can submit a single PDF to the commercial printer. I do this all the time and have never had problems like this, [More]
I'm running InDesign CS6, on a mac powerbook running OSX. When I launch InDesign, the program freezes when it gets to "starting up service registry". I've deleted preferences, and downloaded and installed a new version of the program, all to no [More]
My iphone is on 7.1.2 and out of over 300 purchased songs, only 70 will download onto the phone! And then some that do download won't play! What gives? I even checked all the boxes in my itunes library of songs and clicked the "only download checked [More]