Bug 844004 - Using zenity in GDM PreSession scripts no longer prompts user with dialog before login
Summary: Using zenity in GDM PreSession scripts no longer prompts user with dialog bef...
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdm
Version: 6.3
Hardware: All
OS: Linux
Target Milestone: rc
: 6.4
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
Depends On:
TreeView+ depends on / blocked
Reported: 2012-07-27 20:00 UTC by BJ Walker
Modified: 2018-12-02 19:05 UTC (History)
3 users (show)

Fixed In Version: gdm-2.30.4-40.el6
Doc Type: Bug Fix
Doc Text:
Cause: The PreSession shell script is run before login. Admins are supposed to be able to make the script fail to cancel login. GDM ignores failures, though. Consequence: Login proceeds even when the admin tries to abort it. Fix: GDM now blocks login until the PreSession script finishes, and fails the login process if the PreSession script fails. Result:
Clone Of:
Last Closed: 2013-11-21 23:32:22 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1708 normal SHIPPED_LIVE gdm bug fix update 2013-11-21 00:39:27 UTC

Description BJ Walker 2012-07-27 20:00:26 UTC
Description of problem:
When using the following script:

/usr/bin/zenity --warning --title="CONSENT BANNER" --text "`cat /etc/issue`" --width=750
if [ "$answer" == "1" ] ; then
       exit 1

in /etc/gdm/PreSession/Default, disagreeing with the dialog box no longer kicks user out to login screen.  In RHEL 5, this functionality allowed the admin to provide an EULA to the user, who had to agree with it to continue the login and would be logged out if they disagreed, in RHEL 6 the prompt may appear but does not kick the user out of disagreement.  We were able to work around this by putting in in the Xsession file however it appears the functionality in GDM may have changed.

Version-Release number of selected component (if applicable):

How reproducible:
Every time.

Steps to Reproduce:
1. Place the above script in /etc/gdm/PreSession/Default in RHEL 5
2. Login as the user
3. Disagree with the EULA and get kicked out
4. Do the same in RHEL 6 and see the behavior is no longer honored
Actual results:
Customers allowed to get into the OS even after disagreement with EULA.

Expected results:
Customers kicked out to login screen when disagreeing with the EULA.

Additional info:

Comment 1 RHEL Program Management 2012-12-14 06:48:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Ray Strode [halfline] 2013-06-05 14:37:59 UTC
i believe we fixed this upstream already. devack+

Comment 12 errata-xmlrpc 2013-11-21 23:32:22 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.


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