Description of problem: hddtemp init fails at boot with: /etc/sysconfig/hddtemp: line 7: /dev/hda: Permission denied There's no problem running hddtemp /dev/hda from the cmd line, and suspect selinux is denying permission? Version-Release number of selected component (if applicable): [root@morgansmachine iputils]# hddtemp -v hddtemp version 0.3-beta15 How reproducible: Always Steps to Reproduce: 1.Add /dev/hda to /etc/sysconfig/hddtemp 2.Set init to run at boot 3. Actual results: Failure Expected results: OK Additional info:
How does your /etc/sysconfig/hddtemp look like? The default one only has 4 lines but your error message says line 7. Also, please look for related "avc: denied" messages in /var/log/messages and post them here. What about smartd, do you happen to be starting it at boot time too? If this is a selinux issue, I'd expect it to fail the same way.
smartd running fine. nothing in messages for "avc:denied". /etc/sysconfig/hddtemp : # # hddtemp(8) daemon options. Add at least the disk(s) you want to monitor here. # HDDTEMP_OPTIONS="-l 127.0.0.1" ### Added MR 3-6-06 /dev/hda
The way you have added /dev/hda to the config file means that it will try to execute /dev/hda, not add it to hddtemp's options. Remove everything starting from the "### ..." line and append /dev/hda to HDDTEMP_OPTIONS, like: HDDTEMP_OPTIONS="-l 127.0.0.1 /dev/hda"
Ooops. Thanks. You've closed "notabug", but perhaps a brief comment at the head of /etc/sysconfig/hddtemp to the effect of your note above would stop others making the same mistake?
Yep, already added in my local working copy, will be in the next package revision: # hddtemp(8) daemon options. Add at least the disk(s) you want to monitor to # HDDTEMP_OPTIONS.