Discussion:
connecting to VNC with a non root user
Maracineanu, Dan
2004-01-14 20:48:01 UTC
Permalink
Hi,

I would like to start an application on serverX:2 using VNC.
The application owner is a nonroot user (apps).
I've logged on as root on serverX
start vncserver :2
xhost +

logon on serverX as apps
DISPLAY=serverX:2.0
try to launch xterm and receive the following error message:
Xlib: connection to "serverX:2.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: serverX:2

What could be wrong?
server IBM AIX 4.3.3

Any suggestions will be apreciated.
Thak you
James Weatherall
2004-01-14 21:54:00 UTC
Permalink
Dan,

You're creating the Xvnc server as root, rather than as the user who will
actually be using it. Log on as user apps and create the server and all
should work as expected.

Cheers,

Wez @ RealVNC Ltd.
Maracineanu, Dan
2004-01-14 22:07:00 UTC
Permalink
Hi,

I've tried this and the result is the following:

Logon as appdev
which vncserver -> /usr/bin/X11/vncserver
vncserver :5

You will require a password to access your desktops.

Password: xxx
Verify: xxx

exec(): 0509-036 Cannot load program xauth because of the following errors:
0509-130 Symbol resolution failed for xauth because:
0509-136 Symbol XSecurityGenerateAuthorization (number 58) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityFreeXauth (number 59) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityAllocXauth (number 60) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityQueryExtension (number 61) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
exec(): 0509-036 Cannot load program xauth because of the following errors:
0509-130 Symbol resolution failed for xauth because:
0509-136 Symbol XSecurityGenerateAuthorization (number 58) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityFreeXauth (number 59) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityAllocXauth (number 60) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSecurityQueryExtension (number 61) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.

New 'X' desktop is aix3:5

Creating default startup script /home/appdev/.vnc/xstartup
Starting applications specified in /home/appdev/.vnc/xstartup
Log file is /home/appdev/.vnc/aix3:5.log

---------------------
# try to run xterm

DISPLAY=aix3:5.0
xterm

xterm Xt error: Can't open display:

# When I connect with vncviewer to aix3:5 I get a grey screen with a cross cursor
#
James Weatherall
2004-01-14 22:11:02 UTC
Permalink
Dan,

Those errors look like something to do with the Java runtime, not to do with
VNC.
Who are you logged in as when you try to run the xterm?

Cheers,

Wez @ RealVNC Ltd.
Maracineanu, Dan
2004-01-14 22:18:00 UTC
Permalink
user is appdev
it seems the error is the result of running xauth

Xstartup file -->
------------------
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
------------------

if I try to run twm from console as user appdev I receive the same error message:

***@aix3:/home/appdev/.vnc>twm
exec(): 0509-036 Cannot load program twm because of the following errors:
0509-130 Symbol resolution failed for twm because:
0509-136 Symbol XSyncGetPriority (number 191) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSyncSetPriority (number 192) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSyncQueryExtension (number 193) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
-----Original Message-----
Sent: Wednesday, January 14, 2004 6:11 PM
Subject: RE: connecting to VNC with a non root user
Dan,
Those errors look like something to do with the Java runtime,
not to do with
VNC.
Who are you logged in as when you try to run the xterm?
Cheers,
Maracineanu, Dan
2004-01-14 22:26:02 UTC
Permalink
this is the log file it could help


***@aix3:/home/appdev/.vnc>more aix3:5.log
------------------------------------------------------------------
14/01/04 17:57:07 Xvnc version 3.3.XvncRelease
14/01/04 17:57:07 Copyright (C) AT&T Laboratories Cambridge.
14/01/04 17:57:07 All Rights Reserved.
14/01/04 17:57:07 See http://www.uk.research.att.com/vnc for information on VNC
14/01/04 17:57:07 Desktop name 'X' (aix3:5)
14/01/04 17:57:07 Protocol version supported 3.3
14/01/04 17:57:07 Listening for VNC connections on TCP port 5905
14/01/04 17:57:07 Listening for HTTP connections on TCP port 5805
14/01/04 17:57:07 URL http://aix3:5805
Xlib: connection to "aix3:5.0" refused by server
Xlib: Client is not authorized to connect to Server
1356-605 xrdb: Can't open display 'aix3:5'
Xlib: connection to "aix3:5.0" refused by server
Xlib: Client is not authorized to connect to Server
1356-265 xsetroot: Unable to open display: aix3:5.
Xlib: connection to "aix3:5.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: aix3:5
Xlib: connection to "aix3:5.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: aix3:5
Xlib: connection to "aix3:5.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: aix3:5
exec(): 0509-036 Cannot load program twm because of the following errors:
0509-130 Symbol resolution failed for twm because:
0509-136 Symbol XSyncGetPriority (number 191) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSyncSetPriority (number 192) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-136 Symbol XSyncQueryExtension (number 193) is not exported from
dependent module /udev/devora/8.0.6/network/jre11/lib/aix/native_threads/libXext.a(shr.o).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.

14/01/04 17:57:23 Got connection from client 10.0.0.242
14/01/04 17:57:23 Protocol version 3.3
14/01/04 17:57:27 Pixel format for client 10.0.0.242:
14/01/04 17:57:27 8 bpp, depth 8
14/01/04 17:57:27 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
14/01/04 17:57:27 rfbProcessClientNormalMessage: ignoring unknown encoding type 16
14/01/04 17:57:27 Using hextile encoding for client 10.0.0.242
14/01/04 17:57:27 Pixel format for client 10.0.0.242:
14/01/04 17:57:27 32 bpp, depth 24, little endian
14/01/04 17:57:27 true colour: max r 255 g 255 b 255, shift r 0 g 8 b 16
14/01/04 17:57:27 Using hextile encoding for client 10.0.0.242
14/01/04 17:57:27 rfbProcessClientNormalMessage: ignoring unknown encoding type 16
--------------------------------------------------------------
-----Original Message-----
Sent: Wednesday, January 14, 2004 6:11 PM
Subject: RE: connecting to VNC with a non root user
Dan,
Those errors look like something to do with the Java runtime,
not to do with
VNC.
Who are you logged in as when you try to run the xterm?
Cheers,
Corné Beerse
2004-01-14 23:03:00 UTC
Permalink
Post by Maracineanu, Dan
Hi,
I would like to start an application on serverX:2 using VNC.
The application owner is a nonroot user (apps).
I've logged on as root on serverX
start vncserver :2
xhost +
try `xhost -display :2 +`

Or do `Xvnc -help` and pick the security options, you can provide them to the
vncserver script or hack them in there.

Or do the `xhost +` on a terminal inside the vnc session.
Post by Maracineanu, Dan
logon on serverX as apps
DISPLAY=serverX:2.0
Xlib: connection to "serverX:2.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: serverX:2
What could be wrong?
server IBM AIX 4.3.3
Any suggestions will be apreciated.
Thak you
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Maracineanu, Dan
2004-01-15 13:53:00 UTC
Permalink
Post by Corné Beerse
try `xhost -display :2 +`
***@aix3:/>xhost -display :2 +
1346-219 xhost: bad hostname "display"
1346-225 xhost: unknown address family ""
1346-219 xhost: bad hostname ":2"
Post by Corné Beerse
Or do the `xhost +` on a terminal inside the vnc session.
In VNC viewer window:

***@aix3:/etc>xhost +
access control disabled, clients can connect from any host
1346-217 xhost: must be on local machine to enable or disable access control.

So in other words it doesn't work
Post by Corné Beerse
-----Original Message-----
Sent: Wednesday, January 14, 2004 7:03 PM
To: Maracineanu, Dan
Subject: Re: connecting to VNC with a non root user
Post by Maracineanu, Dan
Hi,
I would like to start an application on serverX:2 using VNC.
The application owner is a nonroot user (apps).
I've logged on as root on serverX
start vncserver :2
xhost +
try `xhost -display :2 +`
Or do `Xvnc -help` and pick the security options, you can
provide them to the
vncserver script or hack them in there.
Or do the `xhost +` on a terminal inside the vnc session.
Post by Maracineanu, Dan
logon on serverX as apps
DISPLAY=serverX:2.0
Xlib: connection to "serverX:2.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: serverX:2
What could be wrong?
server IBM AIX 4.3.3
Any suggestions will be apreciated.
Thak you
_______________________________________________
VNC-List mailing list
http://www.realvnc.com/mailman/listinfo/vnc-list
Maracineanu, Dan
2004-01-15 14:17:00 UTC
Permalink
I've created the file /etc/X2.hosts containing hosts with access for display :5
Loading...