From: Linda Walsh <smartmontools@tl...> - 2008-02-08 00:26:30
I had a question, perhaps an RFE...
What 'things' could smartmon accomplish if it opened the
disk device, read-only? I.e. currently, it opens the device
in r/w mode. But what I'd like to be able to do, is read some
status fields (but not "change" any settings) -- things like
temperature, for example. Are the status-read commands
I don't normally like to run as root. If I put my uid
in group "disk", (and made sure the disk device was group-readable),
or simply set 'smartctl' to set-gid "disk", would it be possible to
Right now, I know it doesn't work due to smctl
opening the disk-device r/w, but is r/w needed for all of the
smartctl related commands?
The error messages for "hd" devices aren't very illuminating
(though 'sd' SCSI devices return a useful message):
With sda, (a scsi device), I get:
Smartctl open device: /dev/sda failed: Permission denied
With hd devices, I get:
Device is in SLEEP mode, exit(2)
(and all 4 of my hd devices are not "sleeping" -- i.e. when I run
as root, two return status (script displays temperature) and
two indicate they are on 'STANDBY' (which is expected -- I leave
them 'spun-down' when unneeded).
Anyway -- just wondering if I have to always run as root for
anything to be read (I have a similar problem with hdparm, which
also opens the device r/w at startup; *sigh*).
Get latest updates about Open Source Projects, Conferences and News.