Bug 81848

Summary: If up2date (version 2.8.39-1.7.0) is started by a non-root user with the --nox option, it still opens an X window to prompt for the root password
Product: [Retired] Red Hat Linux Reporter: Brian Kasper <kasper>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: gafton, mihai.ibanescu
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-15 04:00:31 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 Brian Kasper 2003-01-14 17:57:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212

Description of problem:
The --nox option to up2date is useful when one is logging in remotely from a
system which isn't running an X server.  If one starts up2date as root with the
--nox option, it functions as expected (i.e. all output goes to the console). 
If, however, one isn't a root user, up2date prompts for the root password, and
*tries to open an X window to do so*!

up2date then crashes with this error:

connect 127.0.0.1 port 6000: Connection refused
Gdk-ERROR **: X connection to localhost:10.0 broken (explicit kill or server
shutdown).

I don't think this behavior is what should be expected -- up2date should prompt
for the root password in the console window.

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

up2date-2.8.39-1.7.0

How reproducible:
Always

Steps to Reproduce:
1. Connect to RHL7.0 system via ssh as a non-root user from a system without an
X server running (tunnelling X over ssh so the RHL7.0 system will try to display
any windows on the local machine)
2. Run "up2date --nox -u" to update the entire system
3. Watch up2date crash
    
Actual Results:  up2date crashed with the error message

connect 127.0.0.1 port 6000: Connection refused
Gdk-ERROR **: X connection to localhost:10.0 broken (explicit kill or server
shutdown).

Expected Results:  up2date should have prompted me for the root password in the
console window (or, less preferably, exited cleanly after telling me I have to
be root to perform the desired action)

Additional info:

Comment 1 Adrian Likins 2003-01-15 04:00:31 UTC
the version of userhelper in that release doesnt understand
the idea of "--nox" so it ignores it. "userhelper" is the
app that actually pops up the root password window, not
up2date itself.

Work around is to su to root and run up2date,
therefore not invoking userhelper.

Versions of userhelper in newer releases understand
"--nox" better and dont show this behaviour.