Bug 506901 - Munin doesn't depend on fedora-usermgmt
Summary: Munin doesn't depend on fedora-usermgmt
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: munin
Version: el5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-19 08:03 UTC by Andreas Müller
Modified: 2009-06-19 20:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-19 20:14:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andreas Müller 2009-06-19 08:03:37 UTC
Description of problem:
Munin does not depend on fedora-usermgmt. During installation, a user munin was created with uid/gid 101/102. There seem to be some hardcoded ownerships of uid/gid 124/124 in /var/www/html/munin:
# ll /var/www/html/munin/
total 88
drwxr-xr-x 2   124   124 36864 Apr 14 22:40 andreas-mueller.com
drwxr-xr-x 2 root  root   4096 Jun 19 09:32 cgi
-rw-r--r-- 1   124   124  2555 Feb 21 01:05 definitions.html
-rw-r--r-- 1   124   124  3233 Jun  9 16:40 index.html
drwxr-xr-x 2 munin munin  4096 Jun 19 09:35 localhost
-rw-r--r-- 1   124   124   473 Feb 21 01:05 logo.png
-rw-r--r-- 1 root  root   3538 Feb 18 15:18 style.css
#

There has been no error during installation.

On another box, everything is OK (user munin has 124/124), but on this box i had fedora-usermgmt installed before installing munin.

Version-Release number of selected component (if applicable):
1.2.6-4.el5

How reproducible:
100%

Steps to Reproduce:
1. Install CentOS/RHEL 5.3. (should be the same problem on Fedora, can't check this)
2. Make sure you don't have fedora-usermgmt installed
3. install munin
  
Actual results:
munin's cron job gives the following error:
Cannot open /var/www/html/munin/index.html: Permission denied at /usr/share/munin/munin-html line 488.

Expected results:
No error, it should just work.

Comment 1 Kevin Fenzi 2009-06-19 15:40:03 UTC
munin no longer uses or needs fedora-usermgmt. It dynamically creates a munin user with whatever uid is next if there is not already one in existance. 

The only of those files that are in the package are: 
/var/www/html/munin
/var/www/html/munin/cgi
/var/www/html/munin/cgi/munin-cgi-graph
/var/www/html/munin/style.css

The rest are made by the munin cron job as it gathers data. 
So: 

1. Did you already have an existing /var/www/html/munin/ dir with contents?
Note the timestamps on some of those... ?

2. Did you use to have munin installed on this machine, but removed the user for some reason? Changed authentication? etc. 

I don't think this is at all a issue with the package, but rather something preexisting issue on your machine. ;)

Comment 2 Andreas Müller 2009-06-19 20:14:46 UTC
1. No I had not, but it seems that it slipped in with an rsync from the other machine I mentioned.

Sorry for the trouble, but with your help I've found the problem: it's sitting right in front of my keyboard.

Nevertheless, I'm glad to hear that some packages move away from this stupid fedora-usermgmt thing.

Andreas.


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