Bug 240326
Summary: | Cannot use yum as non-root | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jack Neely <jjneely> |
Component: | yum-rhn-plugin | Assignee: | Clifford Perry <cperry> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.0 | CC: | wdc |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-12-10 18:43:50 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
Jack Neely
2007-05-16 15:24:20 UTC
This is going to be disorienting to users at MIT. People are used to up2date NOT complaining of no RHN registration when run as non-root. User jslagle's account has been closed Is there a status update on this problem? A month has gone by. Red Hat customers have been being bit by this problem. Red Hat support has had to deal with customers being bit by this problem. Is there a candidtate fix? Is Red Hat content to look stupid for having dropped up2date and adopted yum? Is this an easy thing to fix or a difficult thing to fix? Has anyone even made that assessment yet? Hi there, This is being marked as a dupe of bug 222327. Within bug 222327 - we have committed code into the yum-rhn-plugin, which should unload/remove the plugin if yum is being run as a non-root user. This is being tracked for inclusion (pending QA) into the Beta and then final versions of the Red Hat Enterprise Linux 5 - update 2 release. Cliff. bz#222327 if yum run as a non-root user notify the user RHN repo is not accessible --- rhnplugin.py 2007-12-04 18:54:55 UTC (rev 134462) +++ rhnplugin.py 2007-12-04 19:39:51 UTC (rev 134463) @@ -51,6 +51,13 @@ RHN_DISABLED = _("RHN support will be disabled.") + if not os.geteuid()==0: + # If non-root notify user RHN repo not accessible + conduit.error(0, _("*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.") + "\n" + + RHN_DISABLED) + rhn_enabled = False + return + up2date_cfg = config.initUp2dateConfig() try: proxy_url = get_proxy_url(up2date_cfg) *** This bug has been marked as a duplicate of 222327 *** Thank you very much for the information. That is EXTREMELY helpful in understanding the root cause of the problem, and in knowing when to expect a remedy. |