You are not logged in.

#1 2017-01-01 10:19:48

replabrobin
Member
Registered: 2010-05-06
Posts: 232

[SOLVED] etherape dbus warnings

I'm trying to run etherape in an up to date arch linux with sudo, but I always get a warning at startup like this

Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Client failed to connect to the D-BUS daemon:
.......
d at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Client failed to connect to the D-BUS daemon:
Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

loginctl shows I do have a dbus session, but obviously that doesn't seem to matter when I run etherape via sudo.
After experimentation I found that if I run

sudo dbus-run-session etherape

then the warnings go away. Is this the right way to run etherape or is there some other way that makes use of my user session?

Last edited by replabrobin (2017-01-01 22:52:57)

Offline

#2 2017-01-01 11:06:00

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] etherape dbus warnings

More or less, you could carry over the dbus env, but that would mix user and root dbus (security risk) - eg. gksu should do that for you.

You should however figure why you want to run this as UID0 and then figure how to avoid that (some access error because your user isn't in a relevant group or some specific file permissions are too strict.

Offline

#3 2017-01-01 13:24:51

replabrobin
Member
Registered: 2010-05-06
Posts: 232

Re: [SOLVED] etherape dbus warnings

If I run etherape directly I get a different warning eg

Error opening eno1 : eno1: You don't have permission to capture on that device (socket: Operation not permitted)
- perhaps you need to be root?

so perhaps I need to be in a special group or something,

Offline

#4 2017-01-01 18:50:45

seth
Member
Registered: 2012-09-03
Posts: 51,731

Re: [SOLVED] etherape dbus warnings

D'OHH.
And it seems to access the network device in the GUI process ...

This could work (just replace dumpcap with etherape)
http://packetlife.net/blog/2010/mar/19/ … root-user/

Offline

#5 2017-01-01 20:51:27

replabrobin
Member
Registered: 2010-05-06
Posts: 232

Re: [SOLVED] etherape dbus warnings

That seems to work for me. Thanks & happy new year

Offline

Board footer

Powered by FluxBB