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 1090153

Summary: consolehelper applications can't be launched from the gnome-shell menu
Product: Red Hat Enterprise Linux 7 Reporter: Ray Strode [halfline] <rstrode>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: duffy, jsefler, vbenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdm-3.8.4-27.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:55:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pre-verification of gdm-3.8.4-27 for subscription-manager-gui none

Description Ray Strode [halfline] 2014-04-22 18:14:38 UTC
The fix for bug 1080153 introduced a problem for consolehelper applications, namely they won't start for normal users with the new default PATH.

This is because the new default PATH gives priority to /usr/sbin/ over /usr/bin/ so the setuid launcher for consolehelper applications doesn't get run (and instead the unprivileged applications get run directly and promptly fail since the user has insufficient privileges).

Examples of consolehelper applications are the various RHN subscription tools.

At a minimum we should have a release note and 0 day update i think.

Comment 1 Ray Strode [halfline] 2014-04-22 19:19:58 UTC
Fixing this, turns out to be pretty straight forward:

1) revert the patch added in bug 1080153
2) add --with-default-path="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" to the ./configure invocation

Since we're so far along in the RHEL 7 process and time is of the essence, I've built those changes now (piggy backing off the acks from bug 1080153), so they'll end up in tonight's nightly.

I'm holding off on added the build to the errata report until a final call one what our next move is going to be is made.

Comment 2 Ray Strode [halfline] 2014-04-23 12:16:13 UTC
This didn't make last night's compose after all because of a mistake on my part.  The fix is built now as gdm-3.8.4-27.el7 though.  I'm going to hold off adding it to the errata report and thus hold off on it getting into RC3 (assuming there will be an RC3) until I get sign off from the blocker meeting.

Comment 3 Ray Strode [halfline] 2014-04-23 16:57:59 UTC
How to test:

1) log into gnome from gdm
2) run subscription manager from the menus
3) with gdm-3.8.4-25.el7 it won't start, with gdm-3.8.4-27.el7 it should start
4) run gnome-terminal from the menus
5) echo $PATH
6) PATH should have at least:

/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

in it (in that order with bin before sbin

Comment 4 Ray Strode [halfline] 2014-04-25 12:47:46 UTC
one more note on testing, it looks like packages aren't getting automatically tagged into nightly composes anymore so QE will need to manually pull it down from here:

http://qafiler.bos.redhat.com/redhat/brewroot/packages/gdm/3.8.4/27.el7/

we're hoping to get preverification from QE before pulling it into RC3

Can you give this a try jsefler?

Comment 5 John Sefler 2014-04-25 19:38:07 UTC
Created attachment 889893 [details]
pre-verification of gdm-3.8.4-27 for subscription-manager-gui

With the following RC2 compose installed...
http://download.devel.redhat.com/rel-eng/RHEL-7.0-RC-2.0/compose/Server/x86_64/os/
[qe-admin@jsefler-rc7 ~] rpm -q gdm gdm-libs
gdm-3.8.4-25.el7.x86_64
gdm-libs-3.8.4-25.el7.x86_64
[qe-admin@jsefler-rc7 ~]$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/qe-admin/.local/bin:/home/qe-admin/bin
[qe-admin@jsefler-rc7 ~]$ ls -l `which subscription-manager-gui`
-rwxr-xr-x. 1 root root 6944 Mar 25 13:19 /usr/sbin/subscription-manager-gui
[qe-admin@jsefler-rc7 ~]$ subscription-manager-gui 
Error: must be root to execute

^^ In this scenario, subscription-manager-gui is working properly.  HOWEVER, the problem is that we are missing the consolehelper layer which will prompt the user for root credentials, remember it, and then allow the user to run the subscription-manager tools.  The major consequence of this bug is the lack of feedback when attempting to launch subscription-manager-gui from the desktop menu path Applications / System Tools / Red Hat Subscription Manager.  It appears as a NO-OP.

Pre-verifying halfline's fix...
[qe-admin@jsefler-rc7 ~]$ rpm -q gdm gdm-libs
gdm-3.8.4-27.el7.x86_64
gdm-libs-3.8.4-27.el7.x86_64
[qe-admin@jsefler-rc7 ~]$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/qe-admin/.local/bin:/home/qe-admin/bin
[qe-admin@jsefler-rc7 ~]$ ls -l `which subscription-manager-gui`
lrwxrwxrwx. 1 root root 22 Apr 25 11:58 /usr/bin/subscription-manager-gui -> /usr/bin/consolehelper
[qe-admin@jsefler-rc7 ~]$ subscription-manager-gui

At this point, root credentials are interactively prompted for by the consolehelper, remembered, and subscription-manager-gui launches as expected.  All the subscription-manager-gui, subscription-manager, and rhsm-icon functions are now accessible.

Please include gdm-3.8.4-27 and gdm-libs-3.8.4-27 in the next RHEL70 Release Candidate.

Comment 7 Vladimir Benes 2014-04-28 09:07:18 UTC
(In reply to Ray Strode [halfline] from comment #3)
> How to test:
> 
> 1) log into gnome from gdm
> 2) run subscription manager from the menus
> 3) with gdm-3.8.4-25.el7 it won't start, with gdm-3.8.4-27.el7 it should
> start
> 4) run gnome-terminal from the menus
> 5) echo $PATH
> 6) PATH should have at least:
> 
> /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
> 
> in it (in that order with bin before sbin

all steps work as expected, s-m starts, PATH is set correctly.

Comment 8 John Sefler 2014-05-13 23:31:23 UTC
A workaround for Red Hat Subscription Manager for those who have RHEL-7.0-RC-2.0 installed is to...

1) open a gnome-terminal from the menus
2) sudo subscription-manager-gui
or
2) su - root
3) subscription-manager-gui

given the root password, this should successfully launch the subscription-manager-gui tool.

Comment 9 Ludek Smid 2014-06-13 12:55:31 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.