Bug 878588 - Missing dependency on usermode
Summary: Missing dependency on usermode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: candlepin-bugs
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2012-11-20 17:55 UTC by Miloslav Trmač
Modified: 2013-09-30 22:51 UTC (History)
4 users (show)

Fixed In Version: 1.8.2
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:51:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description Miloslav Trmač 2012-11-20 17:55:03 UTC
Description of problem:
The package contains a symlink
> /usr/bin/subscription-manager -> /usr/bin/consolehelper
but it doesn't require the "usermode" package.

Version-Release number of selected component (if applicable):
subscription-manager-1.1.4-1.el7.x86_64

Steps to Reproduce:
1. yum remove userhelper
2. Run "subscription-manager" as an unprivileged user
  
Actual results:
> Error: this command requires root access to execute

Expected results:
password prompt

Comment 2 Bryan Kearney 2012-11-29 16:13:06 UTC
commit 30c594fcc5c9fa0b66b2ac40ca0118a4a3ba6884
Author: Bryan Kearney <bkearney>
Date:   Tue Nov 27 16:15:52 2012 -0500

    878588: Move the requires on usermode from subscription-manager-gui to subscription-manager

Comment 4 Bryan Kearney 2013-02-08 17:18:28 UTC
Fixed in the 1.8.2 version of subscription-manager or python-rhsm

Comment 5 Sharath Dwaral 2013-02-27 23:49:29 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-gui-1.8.3-1.el7.x86_64
subscription-manager-debuginfo-1.8.3-1.el7.x86_64
subscription-manager-1.8.3-1.el7.x86_64
subscription-manager-firstboot-1.8.3-1.el7.x86_64
python-rhsm-debuginfo-1.8.3-1.el7.x86_64
python-rhsm-1.8.3-1.el7.x86_64
subscription-manager-migration-1.8.3-1.el7.x86_64

Running "subscription-manager" and "subscription-manager-gui" as unprivileged user

$ subscription-manager
You are attempting to run "subscription-manager" which requires administrative
privileges, but more information is needed in order to do so.
Authenticating as "root"
Password: 

Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

Primary Modules:

  attach         Attach a specified subscription to the registered system
  list           List subscription and product information for this system
  refresh        Pull the latest subscription data from the server
  register       Register this system to the Customer Portal or another subscription management service
  release        Configure which operating system release to use
  remove         Remove all or specific subscriptions from this system
  unregister     Unregister this system from the Customer Portal or another subscription management service

Other Modules:

  clean          Remove all local system and subscription data without affecting the server
  config         List, set, or remove the configuration parameters in use by this system
  environments   Display the environments available for a user
  facts          View or update the detected system information
  identity       Display the identity certificate for this system or request a new one
  import         Import certificates which were provided outside of the tool
  orgs           Display the organizations against which a user can register a system
  redeem         Attempt to redeem a subscription for a preconfigured system
  repos          List the repositories which this system is entitled to use
  service-level  Manage service levels for this system
  subscribe      Deprecated, see attach
  unsubscribe    Deprecated, see remove
  version        Print version information



$ subscription-manager-gui
You are attempting to run "subscription-manager-gui" which requires administrative
privileges, but more information is needed in order to do so.
Authenticating as "root"
Password: 

Traceback (most recent call last):
  File "/usr/sbin/subscription-manager-gui", line 40, in <module>
    import dbus.dbus_bindings
ImportError: No module named dbus_bindings

(This is because subscription-manager-gui is broken)

In both senarios, it prompts for password.

VERIFIED

Adittional Information:

To show subscription-manager and subscription-manager-gui are dependant on usermode

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                                 Arch                            Version                                Repository                                                                    Size
===================================================================================================================================================================================================================
Removing:
 usermode                                                x86_64                          1.111-1.el7                            @anaconda/7.0                                                                820 k
 usermode-gtk                                            x86_64                          1.111-1.el7                            @rel-eng-latest                                                              220 k
Removing for dependencies:
 rhn-check                                               noarch                          1.8.27-8.el7                           @rel-eng-compose                                                              40 k
 rhn-setup                                               noarch                          1.8.27-8.el7                           @rel-eng-compose                                                             209 k
 rhnsd                                                   x86_64                          5.0.4-4.el7                            @rel-eng-compose                                                             103 k
 subscription-manager                                    x86_64                          1.8.3-1.el7                            @/subscription-manager-1.8.3-1.el7.x86_64                                    2.4 M
 subscription-manager-firstboot                          x86_64                          1.8.3-1.el7                            @/subscription-manager-firstboot-1.8.3-1.el7.x86_64                           29 k
 subscription-manager-gui                                x86_64                          1.8.3-1.el7                            @/subscription-manager-gui-1.8.3-1.el7.x86_64                                818 k
 subscription-manager-migration                          x86_64                          1.8.3-1.el7                            @/subscription-manager-migration-1.8.3-1.el7.x86_64                           80 k
 yum-rhn-plugin                                          noarch                          1.8.8-3.el7                            @rel-eng-compose                                                             204 k

Transaction Summary
===================================================================================================================================================================================================================
Remove  2 Packages (+8 Dependent packages)

Comment 6 RHEL Program Management 2013-04-09 20:51:14 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 8 errata-xmlrpc 2013-09-30 22:51:16 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-2013-1332.html


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