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 early generation ipod that will no longer synchronize with Itunes.  I downloaded Synchios to get the ipod music onto the computer.  Then deleted Synchios software.  Now, when I connect the ipod, it says it is synchronizing but newly purchas [More]
Hi, I am new to FB. I was tasked with finishing up an desktop application that someone else started. They were using FB 3. I got the trial of FB 4.5 and imported the project. Then started the process of learning FB. I am working on a Mac. I got the U [More]
Hi In my procedure i declared the data type of "Value Date" Input parameter as Date where as in CR it is showing data type as "Date Time". Can any one please specify how to change to Date. While prompting for input parameter in descrip [More]
My iMessage is not working. My messages do not show up on my iPad.About iMessages http://support.apple.com/kb/HT3529 Troubleshooting Messages http://support.apple.com/kb/TS2755Read other 2 answers [More]
Hi All, I'm working on a desktop application (flash swf files opening in director shell). When I'm launching MIAW with hidden titlebar, cursor is not appearing in flash textfield. I have used Selection.setFocus() (Action script method) to put the foc [More]
My IPad2 all of a sudden stopped connecting to any network wifi. The Wifi button is on, I can see all the broadband network available.  for one minute it was working fine, and then all of a sudden it stopped working.  I have done the following: Reset [More]
I wonder if some version control like SourceJammer, Prowler can be used along with some relational database in Java Application. I am looking a requirement where along some relational data, I need to store some xml data as well and plan to use LOB fe [More]
I dont know what disk mode even is. I cant get to the menu it just pops up and says "ok to disconnect" when i plugged it into the USB instead of a red flashing circle...its black. and it still says "disk mode" at the top. im freaking o [More]
Have a big problem. I created a site for my work on iWeb due to our IT/webmaster's huge workload. My work loves the site and wants it imported to our server, but they use Dreamweaver and are PC-specific across the board. Any way to import iWeb materi [More]
I want to create a password file in Solaris 10, is there any requirement for its path? i.e., can I create the password file in whatever path I want?yes you can else it will create on default folder that is <ORACLE_HOME>/dbs (in unix) <ORACLE_HOME [More]