Bug 187143 - logwatch tries to show "df -h" for cdrom/dvd too
logwatch tries to show "df -h" for cdrom/dvd too
Product: Fedora
Classification: Fedora
Component: logwatch (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ivana Varekova
Depends On:
  Show dependency treegraph
Reported: 2006-03-28 14:19 EST by feily
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-03 03:46:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace (5.30 KB, application/octet-stream)
2006-03-29 08:21 EST, feily
no flags Details
strace logwatch --print --service zz-disk_space (404.82 KB, application/octet-stream)
2006-03-29 11:24 EST, feily
no flags Details

  None (edit)
Description feily 2006-03-28 14:19:22 EST
Description of problem:
logwatch tries to show "df -h" for cdrom/dvd too

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. put cd/dvd in cd/dvd drive
2. run logwatch or wait for daily output
3. see Disk Space Section
Actual results:

 --------------------- Disk Space Begin ------------------------ 

 Filesystem                            Size   Used  Avail Use%  Mounted on
 df: `/media/foo': Permission denied
 /dev/hdb1                             114G    37G    71G  35%  /home
 /dev/hda1                             9.5G   2.9G   6.2G  32%  /
 ---------------------- Disk Space End ------------------------- 

Expected results:

Additional info:
Comment 1 Ivana Varekova 2006-03-29 07:45:16 EST
Could you please attach the strace of command df -h -P here. 
Comment 2 feily 2006-03-29 08:21:10 EST
Created attachment 126980 [details]

If I run df -h from root or my local user account, there is no Permission
denied error, nevertheless here is the strace output.
Comment 3 Ivana Varekova 2006-03-29 08:47:17 EST
Thank you for your fast reply. The trace of df -h command looks right. Could you
please attach the strace of command "logwatch --print --service zz-disk_space". 
Comment 4 feily 2006-03-29 11:24:51 EST
Created attachment 126999 [details]
strace logwatch --print --service zz-disk_space
Comment 5 Ivana Varekova 2006-04-03 03:46:11 EDT
There was some problem with mounted directory, when the reported logwatch output
was produced. The attached strace is right, so there is not any problem now.

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