Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system log flooded with messages from userhelper running hddtemp #120

Open
zimonth opened this issue Jan 4, 2015 · 1 comment
Open

system log flooded with messages from userhelper running hddtemp #120

zimonth opened this issue Jan 4, 2015 · 1 comment

Comments

@zimonth
Copy link

zimonth commented Jan 4, 2015

In Fedora 20, I installed this gnome-shell-extension-sensors. It is working ok otherwise, but system log is flooded every 15 seconds with these:
"
Jan 03 18:47:57 localhost userhelper[4048]: running '/usr/sbin/hddtemp' with root privileges on behalf of 'luser'
Jan 03 18:48:12 localhost userhelper[4060]: running '/usr/sbin/hddtemp' with root privileges on behalf of 'luser'
Jan 03 18:48:27 localhost userhelper[4066]: running '/usr/sbin/hddtemp' with root privileges on behalf of 'luser'
Jan 03 18:48:42 localhost userhelper[4076]: running '/usr/sbin/hddtemp' with root privileges on behalf of 'luser'
"

I tried to disable "Display drive temperate" in the sensors applet settings, but it did not help.

Also the system does have udisks and udisks2 packages installed, so I'd assume it would not even use hddtemp when it can use D-bus interface to udisks?

See also:
http://forums.fedoraforum.org/showthread.php?p=1719684

@ghost
Copy link

ghost commented Feb 6, 2019

Looks like that can't be bypassed:
https://pagure.io/usermode/blob/a501560b8f25e9ddc1a3213a1f865564e5a9a34c/f/userhelper.c#_1943

			syslog(LOG_NOTICE, "running '%s' with "
			       "root privileges on behalf of '%s'",
			       cmdline, user);

or latest version: https://pagure.io/usermode/blob/abcbbeda420e09aeb476359e79aad9e543ad6397/f/userhelper.c#_2130

What I had to do was to:

  1. suid root /usr/sbin/hddtemp like this:
    sudo chmod u+s /usr/sbin/hddtemp
  2. then overwrite the symlink /usr/bin/hddtemp (note: not sbin) which pointed to consolehelper, to point to /usr/sbin/hddtemp, like this:
    sudo ln -sf /usr/sbin/hddtemp /usr/bin/hddtemp
  3. restart plugin, panel or computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant