Bug 194002 - hddtemp init fails at boot
Summary: hddtemp init fails at boot
Alias: None
Product: Fedora
Classification: Fedora
Component: hddtemp   
(Show other bugs)
Version: 5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2006-06-04 08:45 UTC by morgan read
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-06-04 10:08:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description morgan read 2006-06-04 08:45:18 UTC
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:

Steps to Reproduce:
1.Add /dev/hda to /etc/sysconfig/hddtemp
2.Set init to run at boot
Actual results:

Expected results:

Additional info:

Comment 1 Ville Skyttä 2006-06-04 09:18:17 UTC
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.

Comment 2 morgan read 2006-06-04 09:45:33 UTC
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.

### Added MR 3-6-06

Comment 3 Ville Skyttä 2006-06-04 10:08:01 UTC
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 /dev/hda"

Comment 4 morgan read 2006-06-04 10:41:05 UTC
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?

Comment 5 Ville Skyttä 2006-06-04 11:06:59 UTC
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

Note You need to log in before you can comment on or make changes to this bug.