4 Feb 2007 00:01
Getting SMART info as normal user
John Tapsell <johnflux <at> gmail.com>
2007-02-03 23:01:05 GMT
2007-02-03 23:01:05 GMT
Hi, I want to add SMART info to ksysguard - the kde task manager type app. However I'm not too sure how to get the SMART information as a normal user since reading from /dev/hd* etc requires root privillages. I'm considering writing a small setuid program that gets this information then dumps it to stdout or perhaps even sends it over dbus. Has someone already done this? Or is it perhaps possible to query smartd for this information? Is there a smartmontools library that I can use, I will have to copy and paste code? Thanks all! JohnFlux ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
RSS Feed