Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:

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.