Bug 712075

Summary: Proper error message not displayed when non-root user starts certmonger service
Product: Red Hat Enterprise Linux 5 Reporter: Kaleem <ksiddiqu>
Component: certmongerAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.7CC: dpal, jgalipea, kchamart
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: certmonger-0.50-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:17:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kaleem 2011-06-09 12:51:23 UTC
Description of problem:
Proper error message not displayed when non-root user starts certmonger service.

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


How reproducible:
certmonger-0.42-1.el5

Steps to Reproduce:
1.install certmonger as root 
2.Try to start certmonger service as non-root user

Actual results:
Following error message is displayed on console.

[test@ks ~]$ service certmonger start
Starting certmonger: Error connecting to D-Bus.
                                                           [FAILED]
Expected results:
A proper error message should be displayed.

Comment 1 Nalin Dahyabhai 2011-06-09 21:36:21 UTC
Is the messagebus service already running when you attempt this?

Comment 2 Kaleem 2011-06-10 05:48:04 UTC
(In reply to comment #1)
> Is the messagebus service already running when you attempt this?

Yes, messagebus service is already running.

[test@ks ~]$ /sbin/service messagebus status
dbus-daemon (pid 2059) is running...
[test@ks ~]$ service certmonger start
Starting certmonger: Error connecting to D-Bus.
                                                           [FAILED]

Comment 4 Kaleem 2011-11-23 10:03:11 UTC
Verified.

Certmonger Version:
[root@dhcp201-118 ~]# rpm -q certmonger
certmonger-0.50-1.el5
[root@dhcp201-118 ~]#

Now proper error message is displayed when non-root user starts certmonger service.

[root@dhcp201-118 ~]# su - testuser
[testuser@dhcp201-118 ~]$ /sbin/service certmonger start
Starting certmonger: Error connecting to D-Bus.
Insufficient access.  Please retry operation as root.
                                                           [FAILED]
[testuser@dhcp201-118 ~]$

Comment 5 errata-xmlrpc 2012-02-21 06:17:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0245.html