Bug 41121

Summary: graphical up2date-config barfs when run as root
Product: Red Hat Enterprise Linux 4 Reporter: Clark Williams <williams>
Component: up2dateAssignee: David M. Cook <dcook>
Status: CLOSED WORKSFORME QA Contact: Jay Turner <jturner>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-24 19:36:16 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 Clark Williams 2001-05-17 18:52:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
up2date-config cannot attach to X server when run as root and drops into a
command line config tool

How reproducible:
Always

Steps to Reproduce:
1. su -
2. up2date-config
3.
	

Actual Results:  [root@underdog williams]# up2date-config          
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
0.  storageDir         /var/spool/up2date                      
1.  headerCacheSize    40                                      
2.  httpProxy                                                  
3.  debug              No                                      
4.  useGPG             Yes                                     
5.  retrieveOnly       No                                      
6.  enableProxy        No                                      
7.  keepAfterInstall   No                                      
8.  proxyPassword                                              
9.  proxyUser                                                  
10. headerFetchCount   10                                      
11. versionOverride                                            
12. enableProxyAuth    No                                      
13. noSSLServerURL     http://www.rhns.redhat.com/XMLRPC       
14. noReplaceConfig    Yes                                     
15. noBootLoader       No                                      
16. systemIdPath       /etc/sysconfig/rhn/systemid             
17. serverURL          https://www.rhns.redhat.com/XMLRPC      
18. pkgSkipList        []                                      
19. adminAddress       ['root@localhost']                      
20. forceInstall       No                                      
21. fileSkipList       []                                      
22. retrieveSource     No                                      


Enter number of item to edit <return to exit, q to quit without saving>: 


Expected Results:  The graphical client should have popped up, without
prompting for the root user password.

Additional info:

Comment 1 David M. Cook 2001-05-24 19:16:31 UTC
This looks like an xhosts problem, not an up2date problem.  Can you run other X
clients.  Also, perhaps there is a problem connecting to localhost.  Could you
paste in your /etc/hosts file?

Comment 2 Clark Williams 2001-05-24 19:34:21 UTC
Looks like this only happens on  my laptop, so it must be an X configuration
issue.  

Further exploration shows that doesn't occur when I use 'su -', it's only when I
do a 'sudo -s'. My /etc/hosts file contents:

127.0.0.1	localhost.localdomain	localhost
192.168.0.1	horatius
192.168.0.13	penguin

If you can't duplicate it, then I say we close it out, since I have a
workaround.