WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: dbus-daemon-launch-helper must be setuid root  (Read 6539 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
dbus-daemon-launch-helper must be setuid root
« on: February 09, 2010, 04:24:21 PM »
only way i could run DeviceKit-power was to make dbus-daemon-launch-helper setuid root

i checked permissions on another linux it was setuid root there too

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: dbus-daemon-launch-helper must be setuid root
« Reply #1 on: February 09, 2010, 10:23:07 PM »
Thanks - I can't say I've ever used it, but let me have a look.

Edit: my local version has dbus-daemon-launch-helper setuid root??
« Last Edit: February 10, 2010, 12:35:07 AM by Juanito »

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: dbus-daemon-launch-helper must be setuid root
« Reply #2 on: February 10, 2010, 01:24:40 AM »
Code: [Select]
[tc@box:~$ cd /usr/local/libexec/
tc@box:/usr/local/libexec$ ls -l dbus*
lrwxrwxrwx 1 root root 67 Feb 10 08:18 dbus-bash-completion-helper -> /tmp/tcloop/dbus-glib/usr/local/libexecdbus-bash-completion-helper
lrwxrwxrwx 1 root root 60 Feb 10 08:18 dbus-daemon-launch-helper -> /tmp/tcloop/dbus/usr/local/libexec/dbus-daemon-launch-helper
tc@box:/usr/local/libexec$ cd /tmp/tcloop/dbus/usr/local/libexec/
tc@box:/tmp/tcloop/dbus/usr/local/libexec$ ls
dbus-daemon-launch-helper
tc@box:/tmp/tcloop/dbus/usr/local/libexec$ ls -l
total 34
-rwsr-x--- 1 root root 34692 Sep 20 14:01 dbus-daemon-launch-helper
tc@box:/tmp/tcloop/dbus/usr/local/libexec$ devkit-power

(devkit-power:7846): devkit-power-gobject-WARNING **: Couldn't enumerate devices: Failed to execute program /usr/local/libexec/dbus-daemon-launch-helper: Success

tc user can't execute it i think that's the problem

Code: [Select]
tc@box:/usr/local/libexec$ sudo chmod 4755 dbus-daemon-launch-helper
tc@box:/usr/local/libexec$ devkit-power -e
/org/freedesktop/DeviceKit/Power/devices/battery_BAT0
/org/freedesktop/DeviceKit/Power/devices/line_power_AC0
« Last Edit: February 10, 2010, 01:33:43 AM by Arslan S. »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: dbus-daemon-launch-helper must be setuid root
« Reply #3 on: February 11, 2010, 02:49:26 AM »
permissions adjusted