Bug 712075 - Proper error message not displayed when non-root user starts certmonger service
Summary: Proper error message not displayed when non-root user starts certmonger service
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: certmonger
Version: 5.7
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-09 12:51 UTC by Kaleem
Modified: 2012-02-21 06:17 UTC (History)
3 users (show)

Fixed In Version: certmonger-0.50-1.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 06:17:15 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0245 0 normal SHIPPED_LIVE certmonger bug fix and enhancement update 2012-02-20 15:07:20 UTC

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


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