Bug 690125

Summary: Command "yum repolist " lists Red Hat Network repositories when runs under user different than root.
Product: Red Hat Enterprise Linux 6 Reporter: Dimitar Yordanov <dyordano>
Component: yum-rhn-pluginAssignee: Miroslav Suchý <msuchy>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: cperry, mkhusid, slukasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-01 21:05:14 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 Dimitar Yordanov 2011-03-23 12:02:44 UTC
Description of problem:
Command "yum repolist " lists Red Hat Network repositories when runs under user different than root.

Version-Release number of selected component (if applicable):
RHEL6
rhn-check-1.0.0-57.el6.noarch
rhn-client-tools-1.0.0-57.el6.noarch
rhn-setup-1.0.0-57.el6.noarch
rhn-setup-gnome-1.0.0-57.el6.noarch
yum-rhn-plugin-0.9.1-20.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1.rehister RHEL 6.1 system to rhn.errata.stage.redhat.com
2.Update to:
rhn-check-1.0.0-57.el6.noarch
rhn-client-tools-1.0.0-57.el6.noarch
rhn-setup-1.0.0-57.el6.noarch
rhn-setup-gnome-1.0.0-57.el6.noarch
yum-rhn-plugin-0.9.1-20.el6.noarch
3.su - test
4.yum repolist
  
Actual results:

[test@server]$ yum repolist
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
Loaded plugins: rhnplugin
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
beaker-harness                                                                                                               42/42
beaker-tasks                                                                                                             8821/8821
rhel-x86_64-server-6                                                                                                     4077/4077
repo id                                         repo name                                                                    status
beaker-HighAvailability                         beaker-HighAvailability                                                         47
beaker-LoadBalancer                             beaker-LoadBalancer                                                              2
beaker-ResilientStorage                         beaker-ResilientStorage                                                         42
beaker-ScalableFileSystem                       beaker-ScalableFileSystem                                                        7
beaker-Server                                   beaker-Server                                                                3,471
beaker-debug                                    beaker-debug                                                                 1,624
beaker-harness                                  beaker-harness                                                                  42
beaker-optional-x86_64-debug                    beaker-optional-x86_64-debug                                                 1,177
beaker-optional-x86_64-os                       beaker-optional-x86_64-os                                                    2,628
beaker-tasks                                    beaker-tasks                                                                 8,821
rhel-x86_64-server-6                            Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)                     4,077
repolist: 21,938


Expected results:
rhel-x86_64-server-6  must not be in the list.

Additional info:

Comment 2 RHEL Program Management 2011-11-01 21:05:14 UTC
Product Management has reviewed and declined this request.  You may appeal this
decision by reopening this request.