Bug 149789
Summary: | Xlib connection failure within vnc session when starting an X11 application after su (run level 3) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Neall Doren <usenet> |
Component: | vnc | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED WORKSFORME | QA Contact: | David Lawrence <dkl> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | ||
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: | 2005-04-07 12:43:22 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
Neall Doren
2005-02-26 21:18:10 UTC
I can't reproduce this. Please provide more information: 1. Have you modified your .vnc/xstartup file? 2. What does '/usr/sbin/getenforce' say? 3. How are you starting VNC? Running 'vncserver' from the command line or editing /etc/sysconfig/vncservers (or some other method?) 1) $home/.vnc/xstartup slightly modified. Contents as follows: #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources #xsetroot -solid grey #vncconfig -iconic & #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #/usr/bin/startkde #twm & 2) /usr/sbin/getenforce returns "Disabled" 3) VNC is started via: vncserver -geometry 1024x768 :66 (as regular user) NOTES: A) Using 4.0-0.beta4.1.4 /usr/bin/Xvnc works perfectly (no other files changed). B) Using vnc-server-4.0-8.1 /usr/binXlib results in this error (after su, and within an xterm, inside VNC session): %root> xterm connection to "opus:66.0" refused by server Xlib: No protocol specified Warning: This program is an suid-root program or is being run by the root user. ... C) My default Desktop is KDE, not gnome. vncserver inits KDE. NO idea if the problem exists in gnome. I don't use twm, fvwm, etc. D) Clean install of RHEL 4 WS on blank hard drive. Not upgraded from RHEL 3. E) Machine boots into run level 3. Problem disappears in run level 5, or if I do an "init 5" as root from level 3. Typo in B), in my comment above. Should read: B) Using vnc-server-4.0-8.1 /usr/bin/Xvnc results in this error. I can't reproduce this. Fresh install, with KDE added to the package list. root: Adjust /etc/inittab so that runlevel 3 is default. root: Add user 'foo'. foo: Run vncserver -geometry 1024x768 :66 foo: vi .vnc/xstartup and uncomment two indicated lines foo: vncserver -kill :66 foo: switchdesk KDE root: reboot foo: vncserver -geometry 1024x768 :66 Other machine: vncviewer rhel4:66 Main Menu->Run program->"xterm" In xterm: "su" root: xterm Second xterm appears. |