You are not logged in.
hello pals. I'm trying, without succesfull, see my hddtemps on ksensors.
I've read this
http://bbs.archlinux.org/viewtopic.php?id=75639
but... I can't see how do the SUID solve, or, in another way, how can I solve my issue once when I try access my hddtemps on normal user, I've a "permission denied"
Could you help me?
=================
or... ksensors reads hddtemps like root (kdesu ksensors)
how could I start it like root via daemon on /etc/rc.conf?
Last edited by ilkyest (2010-05-27 03:15:51)
Offline
If you're really sure that you'd never do accidents like dd'ing directly to your drive or stuff like that, you could simply add your user to the 'disk' group.
edit: oops, that won't help with SMART issues like temperature reading, sorry
Last edited by byte (2010-05-28 04:31:03)
1000
Offline
no one has more ideas? Why ubuntu adds these lines to ksensors? just arch doesn't?
Offline
no one?
Offline
^^ i actually didn't undertsand your problem here.
since i'm not a kde user, Ksensors check the hddtemp daemon or it executes hddtemp directly???
if it uses hddtemp daemon then u can use netcat as normal user to connect to hddtemp daemon but if Ksensors uses hddtemp directly as command then you need to set uid to hddtemp binary (that may cause problems in future).
neways tell me if i understood the problem correctly??
Last edited by vik_k (2010-06-24 06:56:18)
"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette
Offline
hddtemp runs the deamon as root.
there are only 2 ways to get a user to access it.
- use suid (highly insecure)
- use netcat
Offline
Is there a way to use netcat read hddtemp's output for /dev/sdb?
Trying to do it in my .conkyrc setup, and in my box hdd2 is the hotter one.
I'm trying to learn something about netcat, it seems to be a whole bag of tricks.
I don't even begin to understand how "nc localhost 7634" manages to read the temp, even after reading man pages for hddtemp and nc.
Offline