You are not logged in.

#1 2010-05-27 03:12:20

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

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

#2 2010-05-28 04:29:15

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

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

#3 2010-06-22 03:05:15

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

no one has more ideas? Why ubuntu adds these lines to ksensors? just arch doesn't?

Offline

#4 2010-06-24 03:35:26

ilkyest
Member
From: Brazil
Registered: 2010-02-13
Posts: 269

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

no one?

Offline

#5 2010-06-24 03:45:42

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

^^ 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

#6 2010-06-24 10:58:06

Caveman85de
Member
Registered: 2010-05-25
Posts: 26

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

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

#7 2010-07-27 06:48:35

noodles
Member
Registered: 2010-07-18
Posts: 23

Re: Ksensors versus hddtemp in "normal user". Why can't I see hddtemps

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

Board footer

Powered by FluxBB