running hddtemp sensor as non-root

Matt Thompson thompsma at jilau1.colorado.edu
Mon Jul 2 20:29:08 CEST 2007


The heavens stretched forth and Roger D Vargas decreed the following on 
or about 07/02/2007 11:51 AM:
> 
> Zach Carter escribió:
>> On Monday 02 July 2007 09:06:16 am Roger D Vargas wrote:
>>
>> It appears that in FC7 /usr/bin/hddtemp is linked to "consolehelper", which is
>> part of the "usermode" rpm package, which uses pam to authenticate and 
>> run things as root:
>>
>> Description :
>> The usermode package contains the userhelper program, which can be
>> used to allow configured programs to be run with superuser privileges
>> by ordinary users.
>>
>> Anyway, thats why hddtemp (and probably the sensors plugin) works just 
>> fine as a regular user in Fedora.
> 
> I wil check if it is available for gentoo.
> 

There is another way this could be done in Gentoo that really isn't done 
in Fedora (since it's user-accessible).  If the hddtemp daemon is 
running, it can often be set to use a port and then netcat can get the 
temperature.  This thread shows how this was done in Ubuntu:

http://ubuntuforums.org/showthread.php?t=282353

I've had to do this before to get conky to read my hddtemp on non-Fedora 
systems.

Matt

-- 
Time's Person of the Year, 2006
    Matt Thompson, PhD -- http://nannyogg.colorado.edu/~thompsma/
    440 UCB, Boulder, CO  80309-0440
    JILA A510, 303-492-4662



More information about the Xfce mailing list